I have created an UltraWinGrid which is binding to a datasource that holds a data table.I manually add columns to the Grid. (Ex. grid.DisplayLayout.Bands[0].Column[1]) and manually setting the property of all the columns in the grid.
I'm trying to add new row to the Grid and it succeeds only if I call immediately the save database command.
But, if I try to click any other row besides the "new row" the grid clears away all the details added to the new row.
How can I keep the focus to the new row till I save it? What are my options?
hi krish,
In Grid set ,
RowUpdateCancelAction = RetainDataAndActivation
and try playing with the BeforecellDeactivate event to check if it is a New AddRow and then validate it of force the user to keep him focused in the current cell
take care of the Update Mode - preferably to be on CellChangeot lostfocus
hope helps you out,
hppy Koding,
Arun
Thanks Arun.
I will try this out.
Thanks,
Krish.