I am getting a "bind variable does not exist" error from Oracle under the example with 1 parameter. I even tried to assign parameter value in
srcEmployee_Updating method. AllowAutomaticUpdates="true"
OracleCommand cmd = (OracleCommand)e.Command;
cmd.Parameters["location_code"].Value = "abc";
Is there a debugging mode to see what RadGrid is creating to talk to datasource for automatic updates?
<asp:SqlDataSource ID="srcEmployee" runat="server" ProviderName="Oracle.ManagedDataAccess.Client" DataSourceMode="DataSet"
UpdateCommand="UPDATE mytable SET location = :location_code'">
<UpdateParameters>
<asp:Parameter Name="location_code" DbType="String" Direction="Input" DefaultValue="empty" ConvertEmptyStringToNull="true" />
</UpdateParameters>
</asp:SqlDataSource>
<telerik:GridTemplateColumn HeaderText="Location Code" HeaderStyle-Width="100px" UniqueName="location_code" DataField="location_code" DataType="System.String">
<ItemTemplate>
<%# Eval("location_code") %>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList runat="server" ID="LocationDropDown" DataValueField="location_code" DataTextField="location_code" Width="100px"
DataSourceID="srcLOV">
</telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>
srcEmployee_Updating method. AllowAutomaticUpdates="true"
OracleCommand cmd = (OracleCommand)e.Command;
cmd.Parameters["location_code"].Value = "abc";
Is there a debugging mode to see what RadGrid is creating to talk to datasource for automatic updates?
<asp:SqlDataSource ID="srcEmployee" runat="server" ProviderName="Oracle.ManagedDataAccess.Client" DataSourceMode="DataSet"
UpdateCommand="UPDATE mytable SET location = :location_code'">
<UpdateParameters>
<asp:Parameter Name="location_code" DbType="String" Direction="Input" DefaultValue="empty" ConvertEmptyStringToNull="true" />
</UpdateParameters>
</asp:SqlDataSource>
<telerik:GridTemplateColumn HeaderText="Location Code" HeaderStyle-Width="100px" UniqueName="location_code" DataField="location_code" DataType="System.String">
<ItemTemplate>
<%# Eval("location_code") %>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadDropDownList runat="server" ID="LocationDropDown" DataValueField="location_code" DataTextField="location_code" Width="100px"
DataSourceID="srcLOV">
</telerik:RadDropDownList>
</EditItemTemplate>
</telerik:GridTemplateColumn>