hi
This is my code and i just couldn't get the value: I did a breakpoint at the ItemCommand and the variable x is empty. Is there something wrong with this code? Thanks
This is my code and i just couldn't get the value: I did a breakpoint at the ItemCommand and the variable x is empty. Is there something wrong with this code? Thanks
<Columns>
<telerik:GridTemplateColumn DataField="CID" HeaderText="CID"
SortExpression="CID" HeaderStyle-Wrap="false" UniqueName="CID">
<ItemTemplate>
<asp:Label ID="CIDLabel" runat="server" Text='<%# Eval("CID") %>'></asp:Label>
</ItemTemplate>
<HeaderStyle Wrap="False"></HeaderStyle>
</telerik:GridTemplateColumn>
Protected
Sub RadGrid1_ItemCommand(ByVal source As Object, ByVal e As Telerik.Web.UI.GridCommandEventArgs) Handles RadGrid1.ItemCommand
Dim item As GridDataItem
Dim x As String
If e.CommandName = "Select" Then
item =
DirectCast(e.Item, GridDataItem)
x = item(
"CID").Text
Session(
"cidl") = item("CID").Text
End If
End Sub