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
1612
How to force winGrid to work in onPropertyChanged bind mode?
posted

Can you please advice how to force on grid to commit all data during user input

like binding standard .NET controls in on DataSourceUpdateMode.OnPropertyChanged

 

What I'd like to archive is when eg user clicks checkbox, I'd like grid to update datasource (DataTable) and fire all events related (eg CellAfterUpdate, row formatting etc)

 

Is it a way to archive that ? Appreciate any tips...

Parents
No Data
Reply
  • 48586
    posted

    Hello ,

     

    To achieve your goal you could handle OnCellChange event. This event is fired when a cell is in edit mode and its value is modified by user and put there the following code:

                                 

      ‘ use this row if you want to commit the changes

            UltraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.CommitRow)

            ‘ use this row if you whant to return the grid in edit more    

            UltraGrid1.PerformAction(Infragistics.Win.UltraWinGrid.UltraGridAction.EnterEditMode)

           

     

    But I do not recommend to do this, because it may cause performance issues.

     

    Let me know if you have any further questions.

Children