Subject: Data Grid how
Posted By: Nuwang Post Date: 4/20/2008 4:51:53 AM
hi,

I want to show my data on vb.net grid view

my version is 2.0.. (Vb.Net 2005)

But I want to show different cells with different colours.
like
http://vbdotnets.googlegroups.com/web/grid.bmp?gda=PE4ZGjgAAABdnLA3RvuGj_yAg1io7fTBujoMU6QHMcF5ihIAmaZzZVCqgoUaPahcm5rtp5-l1MqCP0GTqsAOMnutzruXNCze

pls tell me how to write coding for this ,

Thankx
Nuwan



Reply By: samjudson Reply Date: 4/21/2008 4:27:38 AM
DataGridView Control:  http://msdn2.microsoft.com/en-us/library/e0ywh3cz.aspx

Basic Formatting: http://msdn2.microsoft.com/en-us/library/ms171598.aspx

Programming with Cells: http://msdn2.microsoft.com/en-us/library/ms171616.aspx

/- Sam Judson : Wrox Technical Editor -/
Reply By: musclebai Reply Date: 5/12/2008 9:23:44 AM
you may as well like to see the following discussion on how setting cell styles impact performance ans scalability
http://msdn.microsoft.com/en-us/library/ha5xt0d9.aspx
Also you have to set styles in the appropriate page events.Once the data grid has been parsed as html table , it is late to apply any formatting .You may sometimes encounter styles not getting correctly set due to style inheritances and overrides from parent controls.


Go to topic 71269

Return to index page 1