Asp.net数据绑定控件 [英] Asp.net databind controls

查看:89
本文介绍了Asp.net数据绑定控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

哪个数据绑定控件支持从数据源绑定的头模板



我想添加标题dynamicicall我不知道将绑定多少列。所以我需要将标题模板中的控件与数据源绑定,请帮助,如果任何数据绑定控件支持那个或任何解决方案



i尝试使用GRIDVIEW,LISTVIEW,REAPETER,DATALIST。任何帮助将不胜感激。



谢谢



我的尝试:



i尝试使用GRIDVIEW,LISTVIEW,REAPETER,DATALIST ..非常感谢。

解决方案

< blockquote>请按照Visual Studio中的以下步骤进行操作

步骤1:将数据网格视图拖放到Windows窗体中

步骤2:选择DataSource - >添加项目数据源

步骤3:选择数据库单击下一步

步骤4:选择DataSet单击下一步

步骤5:新连接

步骤6:填写服务器详细信息并单击确定

步骤7:单击下一步并选择源表并单击完成


Which databind control supports header template to bind from datasource

i want to add headers dynamicall i dont know how many columns will bind. so i need to bind control inside header template with datasource please help if any databind control supports that or any solution for that

i tried with GRIDVIEW,LISTVIEW,REAPETER,DATALIST..any help will be appreciated.

Thanks

What I have tried:

i tried with GRIDVIEW,LISTVIEW,REAPETER,DATALIST..any help will be appreciated.

解决方案

please follows below steps in Visual studio
Step 1: Drag and Drop a Data Gridview to Windows Form
Step 2: Choose DataSource -> Add Project DataSource
Step 3: Select Database click Next
Step 4: Select DataSet click Next
Step 5: New Connection
Step 6: Fill server details and Click Ok
Step 7: Click Next and Select Source Table and Click finish


这篇关于Asp.net数据绑定控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆