We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy. Image for the cookie policy date

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 03:35 PM

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


AB Aboo March 29, 2004 03:36 PM

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.
Live Chat Icon For mobile
Up arrow icon