Hello Guys,
I’m facing a problem since last night; actually I’ve a SQL table which containing some information such as ID, Name, Address, Email, Password, Age, Contact No. etc and this table structure is binding with GridView control. I want to display record in GridView control with coloring row; suppose that If age is greater than 18 then row background of that data is yellow and if age is under 18 then row background of that row is orange something like that.
Please let me know how it will resolve I don’t have an idea about it. If possible, please paste your code here.
Thanks !!
Anonymous User
11-Sep-2012It is quite easy to implement, to resolve this problem you have to use GridView1_RowDataBound event and write down the following line code:
I hope this line of code might be resolve your problems. Please marked as answer if this code will help you.
Regards,
Arun Singh