如何使用C#.net Windows应用程序在dataGridview的同一单元格中添加复选框和链接按钮 [英] how to add checkbox and linkbutton in same cell in dataGridview using C#.net windows application
本文介绍了如何使用C#.net Windows应用程序在dataGridview的同一单元格中添加复选框和链接按钮的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
如何使用C#.net Windows应用程序在dataGridview的同一单元格中添加复选框和链接按钮
关于
Vignesh ....
how to add checkbox and linkbutton in same cell in dataGridview using C#.net windows application
Regarding
Vignesh....
推荐答案
查看这些链接,您可能会有所了解
http://forums.codeguru.com/showthread.php?t=415930 [ ^ ]
http://social.msdn.microsoft.com/论坛/en-NZ/winformsdatacontrols/thread/cd5d3527-b82a-4f9c-9727-93da87f2ed27 [
see these links you may get some idea
http://forums.codeguru.com/showthread.php?t=415930[^]
http://social.msdn.microsoft.com/Forums/en-NZ/winformsdatacontrols/thread/cd5d3527-b82a-4f9c-9727-93da87f2ed27[^]
首先设置gv的属性,即"autogeneratecolumn =假",
然后添加
first set the property of gv ie "autogeneratecolumn=false",
then add
<asp:gridview id="GridView1" runat="server" autogeneratecolumns="False" xmlns:asp="#unknown">
<columns>
<asp:templatefield>
<ItemTemplate>
<asp:checkbox id="chk" runat="server" />
<asp:linkbutton id="lnk" runat="server">LinkButton</asp:LinkButton>
</ItemTemplate>
</asp:TemplateField>
</asp:GridView>
</asp:linkbutton></asp:templatefield></asp:gridview>
祝你好运……
gud luck......
这篇关于如何使用C#.net Windows应用程序在dataGridview的同一单元格中添加复选框和链接按钮的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文