You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
I searched the forum and haven't found solution to this problem.
How to make the checkbox cell read-only? the one which you cannot check or uncheck.
I tried setting the cell to read-only but you can still check/uncheck the checkbox.
Is there any way to do this?
Offline
It's a problem, checkbox and radio buttons should be disabled when cell is read-only.
You can use a customized checkbox inherited from the built-in one.
class MyCheckboxCell : CheckBoxCell
{
public override void ToggleCheckStatus()
{
if (this.Cell != null && this.Cell.IsReadOnly) return;
base.ToggleCheckStatus();
}
}
Then use it in your worksheet:
sheet["A1"] = new MyCheckboxCell();
sheet.Cells["A1"].IsReadOnly = true;
Offline