Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Behavior Of DataGridView
Message
From
27/05/2007 19:27:01
 
General information
Forum:
ASP.NET
Category:
Other
Environment versions
Environment:
VB 8.0
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
01225269
Message ID:
01228807
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform