Click here to Skip to main content
15,886,362 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
plzz Help guyzz.
Thank in Advance
Posted

Handle the RowDataBound event of the grid, find the row by checking you condition, if found you can disable the controls withing the row, or set the disabled(gray) bgcolor to the row as per your requirement.
 
Share this answer
 
 
Share this answer
 
 
Share this answer
 
Its another solution, u can remove row from dataset which u binding to gridview. before binding.

e.g. ds.Tables[0].Rows.RemoveAt(1);
 
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