I want to change a particular row color of a gridview based on some condition.
Loading
I want to change a particular row color of a gridview based on some condition.
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Vishal JoshiPosted Apr 1, 2024, 8:22 AM
Hello
You can use the Grid Row Data Bound event to set conditions based on row color. please check the below sample code.
cs File Code
Aspx Page Code
Thanks
Vishal Joshi
Abhishek YadavPosted Apr 8, 2024, 9:46 AM
try this
Amit MohantyPosted Apr 1, 2024, 7:59 AM
You can change the color of a particular row in a GridView based on some condition by using the RowDataBound event.