Hi Sandeep,
The GridGroupingControl1.TopLevelTable property can be used only when the grid is already in edit mode.
i.e when you click the save button the edited records value can be changed according to your calculations
inside the button click event.
'' I think I wrongly assumed that your records will be in edit mode when you click the save button.''
From your previous post description it seems like are trying to get the records from the records rows and use it for some
calculations. ( I am still not pretty sure about the scenario here)
I have attached a sample where We display one of the Columns Values for all the rows in the ListBox, when clicking
on a button.
ParsingThroughRows.zip
The following code is used inside the ButtonClick event to acheive the behavior.
foreach (Record rd in this.GridGroupingControl1.Table.Records)
{
string someVal=rd.GetValue("SomeColumnName").ToString();
//here you can use this value for calculations according to your needs.
}
Let me know if this helps.
Thanks,
A.Sivakumar