简体   繁体   English

在页面上动态添加gridview

[英]dynamically add gridview on page

how i can add gridview dynamically with itemTemplate to the page using c# code? 我如何使用C#代码将itemItemTemplate动态添加到页面中? I wanted to add dynamic no of gridview (3 to 10) as per requirement on page. 我想根据页面上的要求添加动态的gridview号(3到10)。 i want template sort of class which will create & handle 'n' gridviews design & events 我想要模板类的类,它将创建并处理“ n”个GridViews设计和事件

To learn about adding controls to an ASP.NET page at runtime, refer to the following articles: 要了解有关在运行时将控件添加到ASP.NET页的信息,请参阅以下文章:

How to: Add Controls to an ASP.NET Web Page Programmatically 如何:以编程方式将控件添加到ASP.NET网页

[How Do I:] Add Controls to an ASP.NET Web Page Programmatically (Video) [如何:]以编程方式将控件添加到ASP.NET网页 (视频)

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM