Hi,
I want to save/get the data from UltraWinGrid. Whatever the data i modified in the UltraWinGrid and the same needs to be updated into data set. Finally the updated data result will be needed into dataset.
Reply please.
Thanks, Prathap
You can do this by iterating the Rows collection and accessing the cell values for each column, and assigning the values to the corresponding cells in the DataRows of the DataTable. The bigger question is why you think you need to do this, when the grid handles all that stuff without any intervention required on your part. There is an UpdateMode property exposed by the control which provides a way for you to specify when this happens, i.e., when a cell or row is left, when the control loses focus, etc. One of the supported settings is 'OnUpdate', which defers updating the underlying data until the Update method is called. If there is more to this please repost with additional details.
This method is so cumbersome and dumb.
Cant I just call any method of the UltraGrid and pass the range or UltraGridRow collection and have them added in the grid?
I have two forms which has a UltraGrid each.
What I need to do is to copy the selected rows from Grid2 on Form2 back to Grid1 on Form 1.
I am able to get the selected rows from grid2 to form1 but how do I add them to Grid 1.
The table schema for both grids is same.
Please help out.
There's no way to add a row from one grid into another grid. The row in the first grid cannot exist in two grids at once.
You can either add new rows to the second grid and copy the data from the original rows into the new rows - or you can do the same thing on the data source.
Depending on the data source you are using you might be able to do this very easily by simply cloning the data objects and adding them into the data source of the second grid.