how to get selected cell value in gridview using asp..net
I am using a Link
button in a GridView
. I need the value of the button I have clicked. Is there any way to a开发者_如何学JAVAchieve this ?
I suppose you want to get related row from GridView
protected void GridView1_SelectedIndexChanging(object sender, GridViewSelectEventArgs e)
{
GridViewRow row = GridView1.Rows[e.NewSelectedIndex];
}
The required cell you can get from cells collection row.Cells
精彩评论