I got stuck for setting "ReadOnly" column using "ClosedXML" utility for export to Excel.
I am able to export records into Excel, however the first "ID" column I need to keep it read only, user should not type anything. If he want to add new row in the exported excel he can, except "ID" column. Please help me to solve this functionality (ws
is my worksheet).
ws.Column("ID").Style.Protection.SetLocked(true);
Even I am setting "SetLocked" it is editable and I need non-editable field.