你在添加列的时候,有一个类型属性,默认是DatagGidViewTextBoxColum
你把它改为DatagGidViewButtonColum

解决方案 »

  1.   

    我倒!!我的意思是 : DatagGidViewTextBoxColum + DatagGidViewButtonColum一列的。不过DatagGidViewButtonColum在DatagGidViewTextBoxColum 后面。
      

  2.   

    <asp:TemplateColumn HeaderText="详细" ItemStyle-HorizontalAlign="Center">
          <ItemTemplate>
              <span style="cursor:pointer" onclick="showInfo(<%# DataBinder.Eval(Container.DataItem, "ID")%>);">查看</span>
          </ItemTemplate>
        </asp:TemplateColumn>
    在后面或是JS些你的操作
      

  3.   

    .......貌似问题是winform中的....而且是行添加button
      

  4.   

    在模板列里添加一个textbox和一个button
      

  5.   

    winform程序好不好,一看就没经验的。