【Vegas原创】GridView模板列通过ImageButton获取当前列

2年前 (2022) 程序员胖胖胖虎阿
280 0 0
   protected void ImageButton2_Click(object sender, ImageClickEventArgs e)
    {
        divGrdShow.Visible 
= true;

        //获取编辑行的索引
        ImageButton imageBut = sender as ImageButton;
        GridViewRow Row 
= imageBut.NamingContainer as GridViewRow;
        
int id = Row.RowIndex;

        bindGridShow(id);
    }

 

相关文章

暂无评论

暂无评论...