Hi,
I have the following webdatagrid in my application, the datasource is bind to a datatable. When the value is true for the checkbox, it's not editable. While if the value is false, it's editable. Could you please advise what's the issue?
Thanks,
Annie
<ig:WebDataGrid ID="wdgBranch" runat="server" Height="350px" DataKeyFields="BRANCH"
AutoGenerateColumns="false" >
<Behaviors>
<ig:EditingCore>
<ig:CellEditing Enabled="true">
<EditModeActions EnableF2="true" EnableOnActive="true" MouseClick="Single" />
<ColumnSettings>
<ig:EditingColumnSetting ColumnKey="BRANCH" ReadOnly="true" />
<ig:EditingColumnSetting ColumnKey="RELEASED_YN" ReadOnly="false" />
<ig:EditingColumnSetting ColumnKey="RELEASED_BY" ReadOnly="true" />
<ig:EditingColumnSetting ColumnKey="RELEASED_DATETIME" ReadOnly="true" />
</ColumnSettings>
</ig:CellEditing>
</Behaviors>
</ig:EditingCore>
<ig:ColumnResizing>
</ig:ColumnResizing>
<ig:Filtering FilterType="ExcelStyleFilter">
</ig:Filtering>
<ig:Sorting></ig:Sorting>
<Columns>
<ig:BoundDataField DataFieldName="BRANCH" Key="BRANCH" Header-Text="Branch" Width="70px" />
<ig:BoundCheckBoxField DataFieldName="RELEASED_YN" Key="RELEASED_YN" Header-Text="Release Trades" Width="110px" />
<ig:BoundDataField DataFieldName="RELEASED_BY" Key="RELEASED_BY" Header-Text="Released By" Width="100px" />
<ig:BoundDataField DataFieldName="RELEASED_DATETIME" Key="RELEASED_DATETIME" Header-Text="Released Date/Time"
DataFormatString="{0:MMMM dd, yyyy hh:mm tt}" width="175px"/>
</Columns>
</ig:WebDataGrid>
Hi Annie,
Thank you for contacting Infragistics!I wasn't able to reproduce the issue that you describe, could you please attach a sample with some dummy data?
Thank you!
Here is the backend code example. Please advise. Thanks.
protected void Page_Load(object sender, EventArgs e)
{ var dtGridBranch = new DataTable("Branch"); DataColumn column; System.Type typeString = System.Type.GetType("System.String"); System.Type typeBoolean = System.Type.GetType("System.Boolean"); System.Type typeDateTime = System.Type.GetType("System.DateTime");
column = new DataColumn("BRANCH", typeString); dtGridBranch.Columns.Add(column); column = new DataColumn("RELEASED_YN", typeBoolean); dtGridBranch.Columns.Add(column); column = new DataColumn("RELEASED_BY", typeString); dtGridBranch.Columns.Add(column); column = new DataColumn("RELEASED_DATETIME", typeDateTime); dtGridBranch.Columns.Add(column);
DataRow row;
row = dtGridBranch.NewRow(); row["BRANCH"] = "NA"; row["RELEASED_YN"] = true; row["RELEASED_BY"] = "test"; row["RELEASED_DATETIME"] = "2015-01-01"; dtGridBranch.Rows.Add(row); wdgBranch.DataSource = dtGridBranch; wdgBranch.DataBind();
}