I see what you said, but I dont know what to do. there is not method to save a collection, sorry I just learning to use your tool and also C#
This is my code
ParmActionQuoteEntity _parmQuote = new ParmActionQuoteEntity();
public frmParmAction()
{
InitializeComponent();
}
private void frmParmAction_Load(object sender, EventArgs e)
{
this.dgvStatus1.DataSource = ParmActionQuoteEntity.GetParmActionCollection();
}
private void tsbSave_Click(object sender, EventArgs e)
{
_parmQuote.Save();
}
public static ParmActionQuoteCollection GetParmActionCollection()
{
ISortExpression Sort = new SortExpression();
Sort.Add(ParmActionQuoteFields.ActionName | SortOperator.Ascending);
ParmActionQuoteCollection ParmAction = new ParmActionQuoteCollection();
ParmAction.GetMulti(null, 0, Sort);
return ParmAction;
}
What I want is to retrieve all records from a table, display them on a DATAGRIDVIEW so end user can add or modified data and after save all data on table
Do you have a diferent idea how to do it, please help me I have tried hard.
Please could you provide me an example,
Thanks
cadolfo_2000 wrote:
Hi,
Once I do changes on datagridview (update text column and add new row), changes are no save it.
could you help or provied me any example. (Winform - C# - LLBLGen Version 2.0)
ParmActionQuoteEntity _parmQuote = new ParmActionQuoteEntity();
private void frmParmAction_Load(object sender, EventArgs e)
{
this.dgvStatus1.DataSource = ParmActionQuoteEntity.GetParmActionCollection();
}
private void tsbSave_Click(object sender, EventArgs e)
{
_parmQuote.Save();
}
thanks,