在单击事件中把后面的列隐藏就行了,so easy

解决方案 »

  1.   

    不是啊,每行后面都有一个显示明细的按钮,点显示明细,明细数据就显示在当前行的下面。在点一次为消失,我见过ASP程序做的这个功能。
      

  2.   

    再 DataGrid 的 ItemCommand 事件中处理
    // .aspx
    ...
    <asp:templatecolumn>
    <itemtemplate>
    <asp:button commandname="ShowDetail" ....
    ....
    // .aspx
    protected void DataGrid1_ItemCommand(object sender, DataGridItemCommandEventArgs e) 
    {
       if(e.CommandName == "ShowDetail") {
          // 这里判断是显示还是隐藏
       }
    }
      

  3.   

    其实就是JS的问题。通过JS获取当前按扭行所在位置。然后层的坐标显示在这个区域就可以。鉴定完毕