Text from LINKCOLUMN in SelectIndexChanged event
What I want is straightforward. Using the SelectedIndexChanged event of a datagrid I simply want to extract the bound text on a LinkColumn.
' My HTML Column definition is below
<Columns>
<asp:ButtonColumn Text="Select" DataTextField="cust_name" CommandName="Select"></asp:ButtonColumn>
</Columns>
Private Sub DataGridMissing_SelectedIndexChanged(ByVal sender As Object, ByVal e As System.EventArgs) Handles DataGrid1.SelectedIndexChanged
'This you would think would be the obvious solution but it doesn't work
label1.text = DataGrid1.SelectedItem.Cells(0)
I did get code to work in the ItemCommand Event but I want it to work in the SelectIndexChanged Event. Is it possible - if so how is it done?
|