I have a datagrid in asp.net, with a boundfield. On the RowCommand event, I want to get the value of this boundfield. The boundfield, in the columns tag, loooks as below:
<asp:BoundField DataField="LoginID" HeaderText="LoginID" InsertVisible="False"
ReadOnly="True" SortExpression="LoginID" />
What would the accompanying C# be?
Thanks
In the Row_Command Event you can retrieve the index of the clicked Row in this way :