Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Color wrong at startup
Message
De
10/03/2009 11:47:41
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
Formulaires
Titre:
Color wrong at startup
Divers
Thread ID:
01386910
Message ID:
01386910
Vues:
106
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform