The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
I am having trouble setting a single cell in a databoundgrid to readonly. Here is what I do:
grdParams is the DataBoundGrid, colConnector is a gridboundColumn which is a combobox. I simply want a cell in this combobox-column to be readonly.
private void initForm()
{
this.grdParams.BeginUpdate();
this.grdParams.DataSource = this.m_Controller.CurrentReport.ParamTable;
this.grdParams.EnableAddNew = false;
System.Collections.Specialized.StringCollection connectors = new System.Collections.Specialized.StringCollection();
connectors.Add("AND");
connectors.Add("OR");
this.colConnector.StyleInfo.ChoiceList = connectors;
GridStyleInfo style = new GridStyleInfo();
style.ReadOnly = true;
style.BackColor = Color.Gray;
style.Clickable = false;
this.grdParams.Model.ChangeCells(GridRangeInfo.Cell(1,5),style);
this.grdParams.EndUpdate();
}
Please tell me what I am missing, thank you.
Anonymouse