开发者

How can i get the row selected in the DataGrid or GridView?

开发者 https://www.devze.com 2023-01-31 18:39 出处:网络
Can i get the row selected in th GridView or DataGrid in ASP.NET? Please help regarding开发者_运维技巧 this issue.protected void GridView1_SelectedIndexChanging (object sender, GridViewSelectEventArgs

Can i get the row selected in th GridView or DataGrid in ASP.NET? Please help regarding开发者_运维技巧 this issue.


protected void GridView1_SelectedIndexChanging (object sender, GridViewSelectEventArgs e)
{
    GridViewRow row = GridView1.Rows[e.NewSelectedIndex];
}
0

精彩评论

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