开发者

how to get selected cell value in gridview using asp..net

开发者 https://www.devze.com 2023-01-29 09:46 出处:网络
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

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

0

精彩评论

暂无评论...
验证码 换一张
取 消