change the row color in windows datagrid control

I have populated a datagrid from a dataset -- then if a specific column has a negative value, then I want all the rows with that value to be red in color - how do I change the row color based on a column value condition?

2 Replies

SA Sameer May 20, 2003 07:35 PM UTC

http://www.codeproject.com/useritems/CustomDataGridsAndDesigne.asp Hope that helps. -S


AB Aboo March 29, 2004 08:36 PM UTC

This is exactly what I'm attempting to do as well, in VB.NET.... I don't suppose you know of a VB.NET project or ideas concerning this that I could download from somewhere? Any help would be fantastic here. > http://www.codeproject.com/useritems/CustomDataGridsAndDesigne.asp > > Hope that helps. > -S

Loader.
Up arrow icon