Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Strange Behavior Of DataGridView
Message
 
To
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:
01232228
Views:
25
Bah! Thank you! :-) Gotta love how there are more then one set of properties that should theoretically do the same thing.

>>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
________________________
Ben Santiago, MCP & A+
Programmer Analyst (SQL, FoxPro, VB, VB.Net, Java, HTML, ASP, JSP, VBS)
Eastern Suffolk BOCES - Student Data Services


Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the Universe trying to produce bigger and better idiots. So far, the Universe is winning.
-Rich Cook
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform