I have a datagridview in windows form. It looks like this.
In this, have one Checkbox column, two textbox column.
My requirement is need to set readonly true and set grey color for the checkbox for the country has Germany as like below.
Not like below
I need to set color for checkbox only not for datagridview cell.
Is anyone have idea for this?
CodePudding user response:
You can achieve that by setting checkbox's property: 'Enabled' as false. by that way, the checkbox cannot be clicked and its color changes automatically to grey.