I want to change a particular row color of datagrid based on some condition. (windows form datagrid - vb.net 2003).
Here in datagrid, first column is bool column.
If the value for this bool column is true in database, then on form_load this bool col in grid will be checked else it will be unchecked.
Now when this value in db is true, i want to change the color of the row in grid , say gray color.
So how to change the color in datagrid based on this condition from db?
Secondly, once this bool col is true in db and color of this row is gray, then i want to make this whole row (including bool column) as read only. Even when user tries to click on bool col, nothing shd happen (if value is true in db).
How can i do that?