BoldDeskBoldDesk is now live on Product Hunt with a special offer: 50% off all plans. Let's grow together! Support us.
void SetGridReadOnly( bool ReadOnly )
{
if ( ReadOnly )
{
this.grdRule.Model.ColStyles[2].ReadOnly = ReadOnly;
this.grdRule.EnableAddNew = !ReadOnly;
this.grdRule.Model.ReadOnly = ReadOnly;
}
else
{
this.grdRule.IgnoreReadOnly = true;
this.grdRule.Model.ReadOnly = ReadOnly;
this.grdRule.Model.ColStyles[2].ReadOnly = ReadOnly;
this.grdRule.EnableAddNew = !ReadOnly;
this.grdRule.IgnoreReadOnly = false;
}
}
Best regards,
Jay N