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
3788
how to get updated data using dropdowneditor control?
posted

Hi,

I am using DropDown editor control in grid, I want to update cell value when change the DropDown value.

when i am changing the dropdown value and update my sql table the getting null value error, because my sql column do not allow me to set null value.

when i am updating the value in my table as per changed in  dropdowneditor, getting null error, why is this issue coming?

My code is look like that

<ig:BoundDataField DataFieldName="Caption" Key="Id" Header-Text="Caption"
Width="80px" />

<ig:EditingCore BatchUpdating="true">
<Behaviors>

<ig:CellEditing Enabled="true" EditModeActions-EnableF2="true">
<ColumnSettings>
<ig:EditingColumnSetting ColumnKey="Id" EditorID="valProvider" />
</ColumnSettings>
</ig:CellEditing>
</Behaviors>
</ig:EditingCore>


<EditorProviders>
<ig:DropDownProvider ID="statusProvider">
<EditorControl ID="statusEditorCntrl" runat="server" DisplayMode="DropDownList" TextField="Caption"
ValueField="Id" DataKeyFields="Id" Width="80px" DataSourceID="Source" >
</EditorControl>
</ig:DropDownProvider>
</EditorProviders>