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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top