List Info

Thread: How to color rows in datagrid based on cell values?




How to color rows in datagrid based on cell values?
user name
2006-06-26 16:27:03
> Any hints, pointers? I need something like "if a
value in row(n) is 1 make
> the row green, if it's 5 make the row(n) yellow,
etc.". Datasource for the
> grid is a datatable. I'm digging but any shortcuts
will be appreciated.

Here's an example:

    http://www.vb-helper.com/howto_net_colored_datagrid.html


HTH,

Rod

Rod Stephens, Author of "Visual Basic 2005
Programmer's Reference"
http://www.v
b-helper.com/vb_prog_ref.htm
Sign up for the free VB Helper Newsletters at
http://www.v
b-helper.com/newsletter.html

===================================
This list is hosted by DevelopMentorŪ  http://www.develop.com

View archives and manage your subscription(s) at http://discuss.develop.com

[1]

about | contact  Other archives ( Real Estate discussion Medical topics )