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

   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);
    }
原文地址:https://www.cnblogs.com/amadeuslee/p/3744497.html