<
telerik:GridTemplateColumn UniqueName="CompanyName" HeaderText="Company Name" DataField="CompanyName">
<ItemTemplate>
<asp:Label ID="lblVendorID" runat="server" Text='<%# Eval("CompanyName")%>'></asp:Label>
</ItemTemplate>
<EditItemTemplate>
<telerik:RadComboBox ID="ddlCompanyName" runat="server" DataTextField="CompanyName" DataValueField="CompanyName" MarkFirstMatch="true" SelectedValue='<%# Bind("CompanyName") %>' DataSourceID="SDSVendorCompany" AppendDataBoundItems="true" AllowCustomText="true">
<Items><telerik:RadComboBoxItem Text="- Select One -" Value="" /></Items>
</telerik:RadComboBox>
</EditItemTemplate>
<ItemStyle HorizontalAlign="Left" VerticalAlign="Top" /> </telerik:GridTemplateColumn>
I"m testing it here, and if I type in a new value, the value of test is always 'Nothing'. If I choose an existing value, it works great.
Protected Sub SDSVendors_Inserting(ByVal sender As Object, ByVal e As System.Web.UI.WebControls.SqlDataSourceCommandEventArgs) Handles SDSVendors.Inserting
Dim test As String = e.Command.Parameters("@CompanyName").Value
E
nd Sub