如何使用csharp在数据网格视图中获取数据绑定 [英] how to get the data bind in data grid view using csharp
本文介绍了如何使用csharp在数据网格视图中获取数据绑定的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试过但它不能正常工作。
i将数据库记录绑定到数据网格视图。
当我输入datagridview.databind();
点(。)databind之后的上一行代码
不来为什么。我试了几次但是没有来。
为什么/。如何获取数据绑定。
i tried but it is not working.
i am binding the data base record into data grid view.
in code when i type datagridview.databind();
the above line after dot(.) databind, is not coming why.i tried several times but it is not coming.
why/. how can i get the data bind.
推荐答案
查看这些文章...
详细的数据绑定教程 [ ^ ]
http://www.switchonthecode.com/tutorials/csharp-tutorial -binding-a-datagridview-to-a-collection [ ^ ]
go through these articles...
A Detailed Data Binding Tutorial[^]
http://www.switchonthecode.com/tutorials/csharp-tutorial-binding-a-datagridview-to-a-collection[^]
创建一个数据表添加到该数据表所需的输出然后
datagrid .itemsource = datatable.defaultvalue;
create a datatable add ur required output to that datatable and then
datagrid.itemsource= datatable.defaultvalue;
这篇关于如何使用csharp在数据网格视图中获取数据绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文