Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
865
CheckBox field in WebDatagrid Not updating
posted

Hi Team,,

Need help..

I have a web data grid with one of column as boolean hence it is coming as a bound checkbox field.

The issue I am facing is that I am not able to edit the value of any checkbox field of the column if the checkbox is already marked checked.

Here is the HTML of the grid

<ig:WebDataGrid ID="WebDataGrid1" runat="server" Height="350px" Width="400px" AutoGenerateColumns="False" DataSourceID="SqlDataSource1">
<Columns>
<ig:BoundDataField DataFieldName="ID" Key="ID">
<Header Text="ID">
</Header>
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Name" Key="Name">
<Header Text="Name">
</Header>
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Age" Key="Age">
<Header Text="Age">
</Header>
</ig:BoundDataField>
<ig:BoundDataField DataFieldName="Score" Key="Score">
<Header Text="Score">
</Header>
</ig:BoundDataField>
<ig:BoundCheckBoxField DataFieldName="IsActive" Key="IsActive">
<Header Text="IsActive">
</Header>

</ig:BoundCheckBoxField>
</Columns>

<Behaviors>
<ig:Activation>

</ig:Activation>
<ig:EditingCore>

<Behaviors>
<ig:CellEditing>
<ColumnSettings>
<ig:EditingColumnSetting ColumnKey="IsActive" ReadOnly="false" EditorID="Editor1"/>
<ig:EditingColumnSetting ColumnKey="Age" />

</ColumnSettings>
</ig:CellEditing>
</Behaviors>
</ig:EditingCore>

</Behaviors>
</ig:WebDataGrid>

Please suggest how I can implement this feature..

Varun

Parents
  • 16310
    Offline posted

    Hello Sharma,

    You do not need any editor to check/uncheck the column, so please see if you will be able to do this if you remove this attribute EditorID="Editor1" from the EditingColumnSettings.

    I am looking forward to hearing from you.

Reply Children
No Data