Retrieving a row from the GridView
I'm would like to retrieve a cell from a selected row in GridView. Please tell me how I might accomplish thi开发者_Python百科s.
You can try that:
Dim row As GridViewRow = CustomersGridView.SelectedRow
Dim cell2 as string = row.cells(1).text
In C#,
GridViewRow GVR = gridview.SelectedRow;
string dd = GVR.Cells[1].Text;
精彩评论