GridViewRow row = (GridViewRow)(((LinkButton)e.CommandSource).NamingContainer);
int strCurrentRowIndex = row.RowIndex;
GridViewRow selectedRow = grdDetail.Rows[strCurrentRowIndex];
string clientname = selectedRow.Cells[0].Text;
Note: this is will return the first column value of the current row.
int strCurrentRowIndex = row.RowIndex;
GridViewRow selectedRow = grdDetail.Rows[strCurrentRowIndex];
string clientname = selectedRow.Cells[0].Text;
Note: this is will return the first column value of the current row.
10:55 PM |
Category: |
0
comments
Comments (0)