Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
135
Problems with Adding new Row in UltraWinGrid
posted

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?

Parents
No Data
Reply
  • 1803
    Verified Answer
    posted

    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  

     

Children