I am getting errors on getting a label text value (in EditFormSettings) from the code behind '<%# DataBinder.Eval(Container,"SIDX1H") %>'
in the aspx page. Please see the code below...
I have tried Container.DataItem also but still error.
Any solutions to get the value correctly?
Also Can I get the row header (column) value in the EditFormSettings ?
Here is the Code Behind for Grid Item Command:
Protected Sub gv_Search_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles gv_Search.ItemCommand
'Get the Row index of the click and load the DataKeys (Columns)
Dim index As Int32 = Convert.ToInt32(e.Item.ItemIndex)
Select Case e.CommandName
Case "edit"
Dim SIDX1H As String = _user.Containers(0).CustomView.SIDX1.ToString ..........
Here is the aspx code for Editformsettings:
<
EditFormSettings EditFormType="Template">
<EditColumn ButtonType="LinkButton" CancelText="Cancel" InsertText="Insert Order" UniqueName="col_Edit" UpdateText="Update">
<ItemStyle BackColor="Black" />
</EditColumn>
<FormTemplate>
<div class="divGVEdit" style="padding-left: 10px;">
<div style="padding-left: 10px; text-align: left">
<table id="tblReg" style="border-collapse: collapse;" cellspacing="2" cellpadding="1">
<tr>
<td align="left">
<itemtemplate>
<asp:Label ID="lbl1" runat="server" Text='<%# DataBinder.Eval(Container,"SIDX1H") %>' />
</itemtemplate>...........
Thanks
Sanjay