将数据添加到网格视图
问题描述:
大家好!
我在sql server 2008中创建一个过程,并具有参数
id1
我必须从该过程中检索fname,mname,lname
程序运行正常,但我对如何用C Sharp编写此程序感到困惑
将我的数据从sql server显示到c Sharp中的datagridview中
hi to all!
i create a procedure in sql server 2008 and has parameter
id1
and i have to retrive from that procedure fname, mname, lname
procedure is working properly but i am confiused to how to write this in c sharp
to display my data from sql server to a datagridview in c sharp
how to do
答
尝试使用Google.关键字是ADO.Net.
您还可以看到以下示例,但重要的是您对ADO.Net有基本的了解.
如何使用C#中的SQL语句填充DataGridView,GridView [ http://www.switchonthecode.com/tutorials/csharp-tutorial-将一个数据网格绑定到数据库 [ ^ ]
http://forum.csharp-online.net/viewtopic.php?p=1729 [ ^ ]
Try using Google. Key word is ADO.Net.
You can also see the following examples, but its important that you have a basic understanding of ADO.Net.
How to populate DataGridView, GridView with SQL statement in C#[^]
http://www.switchonthecode.com/tutorials/csharp-tutorial-binding-a-datagridview-to-a-database[^]
http://forum.csharp-online.net/viewtopic.php?p=1729[^]