Datagrid with colored columns pausing during setup

  • Thread starter Thread starter Rob Oldfield
  • Start date Start date
R

Rob Oldfield

I have a windows form that contains a datagrid with columns given coloured
backgrounds via the DataGridColoredTextBoxColumn class. Data is loaded, and
the table style set up, during the load event of the form. At present, the
form half displays, then pauses, then completes. Is there any way of
telling it to complete the set up _before_ displaying anything?

Thanks.
 
Have you tried performing the code between a DataGrid.BeginInit() and
DataGrid.EndInit()?

Pete
 
Back
Top