如何使用c#在gridview中添加动态列
问题描述:
gridview中只有一个linkbutton。
< asp:GridView ID =GridView1runat =server>
< asp:LinkButton ID =LinkButton6runat =serverCssClass =lbladdname>关于研究所
如果用户选择3,我需要显示3个链接按钮(3列和1行)。
根据用户选择我希望链接按钮显示为只有一行的列。
建议我....
There is only one linkbutton inside gridview.
<asp:GridView ID="GridView1" runat="server">
<asp:LinkButton ID="LinkButton6" runat="server" CssClass="lbladdname">About Institute
If user selects 3, i need to display 3 linkbuttons (3 columns and 1 row).
Based on User selection i want the linkbuttons to be displayed as columns with only one row.
suggest me....
答
访问链接...
http://www.c-sharpcorner.com/uploadfile/Shawpnendu/dynamically-creating-bound-and-template-columns-in-gridview- using-Asp-Net / [ ^ ]
快乐编码!
:)
visit link...
http://www.c-sharpcorner.com/uploadfile/Shawpnendu/dynamically-creating-bound-and-template-columns-in-gridview-using-Asp-Net/[^]
Happy Coding!
:)
阅读此代码项目文章..这可以帮助你了解
article
或以下链接可以帮助你...
link1
link2
read this codeproject article.. may this can help u out
article
or may the following links can help u...
link1
link2