Home Forums WinForms controls Xceed Grid for WinForms BeginInit and EndInit : when to use? Reply To: BeginInit and EndInit : when to use?

User (Old forums)
Member
Post count: 23064

I use it when I need to change different things that influence the content of the GridControl, and that might cause sorting, painting or rebuilding of the GridControl’s DataRows.
Example: when I have a GridControl that is bound to a DataTable or DataView, I call BeginInit before and EndInit after updating the content of the DataTable. When a GridControl is bound to a DataView, and the filter of the DataView has to change, I also put it between BeginInit and EndInit, because it causes the GridControl to rebuild its DataRows.

Imported from legacy forums. Posted by Tommy (had 388 views)