数据网格视图问题 [英] datagrid view problem

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

问题描述

您好,所有开发人员
我有一个datagridview,它的数据源有一组数据,但是没有显示,
我的问题是什么???????

解决方案

如果不看任何代码就不可能找出问题.
调试代码并检查数据源,以确保其中包含一些记录.

http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx [ ^ ]可能还提供了一些帮助. /blockquote>



昨天我用分页创建了一个DataGridView的UserControl.请查看逐步创建UserControl:使用分页的DataGridView [^ ]

您只需要在页面中添加该控件并与DataTable绑定即可.而已.控件将为您完成所有工作,包括分页.

如果您不想使用自定义控件,则找到附加的代码并查看绑定代码.如果您有任何问题,请告诉我.

祝你好运
谢谢
-Amit Gajjar


使用此...

 gridview1.datasource = datasourcename;
gridview1.databind(); 


hello all developers
i have a datagridview that its datasource have a set of data but it dosen''t show ,
what is my problem?????

解决方案

It is impossible to figure out the problem without seeing any code.
Debug your code and check the datasource to ensure there are some records in it.

http://msdn.microsoft.com/en-us/library/fbk67b6z.aspx[^] might additionaly provide some assistance.


Hi,

Yesterday i have created one UserControl of DataGridView with paging. Please have a look at Step by Step Creating UserControl : DataGridView With Paging[^]

What you need to do is just add that control in your page and binding with DataTable. thats it. control will do everything for you including paging.

If you do not want to use Customized control then find attached code and have a look at the binding code. Let me know if you have any issue.

Good luck
Thanks
-Amit Gajjar


Use this...

gridview1.datasource=datasourcename;
gridview1.databind();


这篇关于数据网格视图问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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