Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Strange Behavior Of DataGridView
Message
De
17/06/2007 13:05:21
 
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:
01233798
Vues:
14
>Bah! Thank you! :-) Gotta love how there are more then one set of properties that should theoretically do the same thing.

You're welcome Ben. I wonder if some of the DataGridView properties have anything to do with the properties that were originally DataGrid properties carried over to the DataGridView, but then they decided to implement differently (or not at all) for DatGridView. I don't know if that's true or not, just wondering out loud. <g>

~~Bonnie


>
>>>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
Bonnie Berent DeWitt
NET/C# MVP since 2003

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

Click here to load this message in the networking platform