I was having difficulties trying to change the background or foreground color dynamically behind code in c#. The checkbox is inside an itemtemplate, where the itemtemplate is inside a gridview. The gridview is bound with data, so there are many checkboxes, what i need to do is change the color of spesific checkboxes.
I was having difficulties trying to change the background or foreground color dynamically behind
Share
write this following code inside RowDataBound event of GridView.Find that checkBox ,after that you can access that checkBox’s properties