Click here to Skip to main content
15,890,557 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
How could i change row color in .net 2003 basing on a cell value in a datagrid.

i can do it in 2008, but whats the code to write in .net 2003.

i have a column calledstatus.

if status value is 'N' then that row should be in red color.

Please any one let me know the solution to do this
Posted

1 solution

From what I understand, you can't do this easily using .Net 1.1 which uses the DataGrid. The DataGridView which was available in .Net 2.0 was much much easier to use. From what I found googling[^] it looks like you have to make a custom control in order to get to that kind of functionality in VS 2003 aka .Net 1.1. Here[^] is an MSDN link that confirms this, and here[^] is an MSDN article that discusses how to customize the DataGrid.

Hope this helps.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900