Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Color wrong at startup
Message
From
10/03/2009 11:47:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
Forms
Title:
Color wrong at startup
Miscellaneous
Thread ID:
01386910
Message ID:
01386910
Views:
107
I have a winform that has a datagridview on it. When I start the form I bind a datasource to the grid and then set a specific cell to a set color based on the value in that cell. The color change does not take effect at startup. However if I call that cell color function after the form is displayed (clicking on a button) then the cells all color properly.

I'm assuming that this has to do with the loading of the datagridview but I can't track it down.

Anyone got any suggestions on this?

This is the code I call at start up

public yardmngt()
{
InitializeComponent();
FillHeaderGrid(); // fills datagrid with data and sets color
dgheader.ContextMenuStrip = CMOrdHeader;
dglineitems.ContextMenuStrip = CMOrdLineItem;
}


Thanks

Alan Wyne
Next
Reply
Map
View

Click here to load this message in the networking platform