将datatable绑定到gridview [英] bind datatable to gridview

查看:79
本文介绍了将datatable绑定到gridview的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨...



我想使用datatable绑定gridview。我希望在标题行包含控件之后添加一行作为我的第一行网格。我希望通过将datatable绑定到它来在网格中添加行。提供soln.thanx

hi...

I want to bind gridview using datatable.I want add one row as my first row of grid after header row contains controls and after this i want add row in the grid by binding datatable to it.provide soln.thanx

推荐答案

参考类似的解决QA:

如何使用TemplateField将DataTable绑定到Gridview [ ^ ]

将数据表绑定到网格视图 [< a href =http://stackoverflow.com/questions/2001764/binding-datatable-to-grid-viewtarget =_ blanktitle =New Window> ^ ]
Refer similar solved QA:
How to bind DataTable to Gridview using TemplateField[^]
binding datatable to grid view[^]


您好,



使用以下链接



http://www.thecodekey.com/Articles/ASP_net/Bind_Grid_with_Dataset.aspx [ ^ ]

http://www.vkinfotek.com/gridview/binding-gridview-dataset.html [ ^ ]



绑定网格后,使用数据表并在其中插入一个空白行,然后从现有数据表中插入所有行,然后再次绑定到网格。



请检查并确认。如果你有任何困惑,那么你可以问我。
Hi,

Use below links

http://www.thecodekey.com/Articles/ASP_net/Bind_Grid_with_Dataset.aspx[^]
http://www.vkinfotek.com/gridview/binding-gridview-dataset.html[^]

After binding grid, use a datatable and insert a blank row into that then insert all row from existing datatable then bing again to grid.

Please check and confirm. if you have any confusion then you can ask me.


这篇关于将datatable绑定到gridview的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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