日期:2014-05-17  浏览次数:20853 次

求助 C#在winform下 每一列记录添加删除按钮?用什么做?求教
如题

------解决方案--------------------
GridView控件就可以.
------解决方案--------------------
有click事件就能做啊
------解决方案--------------------
要用按钮放到网格上模拟。
------解决方案--------------------
让你看下我的,和你说的类似吧,我的是点yplus.gif这张图,就变成修改,取消,删除这三个按键,每一行都有
<asp:TemplateColumn>
<ItemTemplate>
<asp:ImageButton id="lkb_edit" CommandName="Edit" ImageUrl="../../image/yplus.gif" Runat="server"></asp:ImageButton>
</ItemTemplate>
<FooterTemplate>
<asp:LinkButton ID="lkb_insert" CommandName="Insert" Runat="server" CausesValidation="false" Text='<%# GetConfigString("dg_insert")%>'>
</asp:LinkButton>
<INPUT id="spxz" style="CURSOR: hand; COLOR: #993366; BACKGROUND-COLOR: #ccffff" onclick="selectspxx()"
type="button" value='<%=GetConfigString("dg_szsp")%>'>
</FooterTemplate>
<EditItemTemplate>
<asp:LinkButton id="lkb_update" Text='<%# GetConfigString("dg_update")%>' CommandName="Update" Runat="server" CausesValidation="false">
</asp:LinkButton>
<asp:LinkButton id="lkb_cancel" Text='<%# GetConfigString("dg_cancel")%>' CommandName="Cancel" Runat="server" CausesValidation="false">
</asp:LinkButton>
<asp:LinkButton id="lkb_delete" Text='<%# GetConfigString("dg_delete")%>' CommandName="Delete" Runat="server" CausesValidation="false">
</asp:LinkButton>
</EditItemTemplate>
</asp:TemplateColumn>