ZmrAbdulla
Technical User
I have a datagrid shows list of employees.
SL/No EmpName Extension
..... ....... ..........
I want to click on the "EmpName" to redirect the page to the details of selected employee. The redirecting part is OK for me. But I don't know how to get the selected name value.
What I will use for it?
[tt]
<asp:ButtonColumn>
or
<asp:HyperLinkColumn>[/tt]
I have tried it with <asp:ButtonColumn> and
On SelectedIdex_Change
and
Both not worked...
any help?
________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.
SL/No EmpName Extension
..... ....... ..........
I want to click on the "EmpName" to redirect the page to the details of selected employee. The redirecting part is OK for me. But I don't know how to get the selected name value.
What I will use for it?
[tt]
<asp:ButtonColumn>
or
<asp:HyperLinkColumn>[/tt]
I have tried it with <asp:ButtonColumn> and
On SelectedIdex_Change
Code:
Dim EmpName As String = CStr(Me.DataGrid1.DataKeys(DataGrid1.SelectedItem.Cells(1).Text)).ToString
Code:
Dim EmpName As String = CStr(Me.DataGrid1.SelectedItem.Cells(1).ToString)
any help?
________________________________________________________
Zameer Abdulla
Help to find Missing people
Sharp acids corrode their own containers.