How to save data from a new grid in a new folder?
Giovanni Carletti
Hi everybody,I follow some post in the forum where shows how to add a folder and a grid, filled from a sql statement, and all it works.
But when a user change some data in the grid cell, I don't know to save to db table.
I start creating a field optimizer , set form id and event Update, the the code is:
try
{
pVal.Form.Freeze(true);
SwissAddonFramework.UI.Components.Grid myGrid = SwissAddonFramework.UI.Components.Grid.GetFromUID(pVal.Form, "Grid1");
MessageBox.Show(Convert.ToString(myGrid.Rows.Count) , "OK");
for (int i = 0; i < myGrid.Rows.Count-1; i++)
{
myGrid.?????? /}
pVal.Form.Freeze(false);
return true;
}
catch(System.Exception e)
{
MessageBox.Show("Error in Grid Update: " + e.Message, "OK");
return false;
}
Regards,
[color=green]Giovanni
0
Please sign in to leave a comment.
Comments
0 comments