Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Behavior Of DataGridView
Message
De
27/05/2007 19:27:01
 
Information générale
Forum:
ASP.NET
Catégorie:
Autre
Versions des environnements
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01225269
Message ID:
01228807
Vues:
21
This message has been marked as the solution to the initial question of the thread.
>That would defeat the purpose. Without it, the grid is not formatted as I need.

Yeah, you're right ... sorry, I don't use the DGV all that much.

But, I looked into it and you're using the wrong property to set the style. Try the DefaultCellStyle.Format instead:
this.dataGridView1.Columns["DOB"].DefaultCellStyle.Format = "MM/dd/yyyy";
~~Bonnie


>
>>Have you tried *not* doing the FormatGrid() method after you rebind?
>>
>>~~Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform