将值从Sql检索到datagridview C# [英] Retriving the values from Sql to datagridview C#

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

问题描述


我正在C#Windows应用程序中工作.我已经从Excel(具有8行)将文件上传到C#,并且从C#上传到Sql server.现在我需要将数据从Sqlserver检索到C#.泛化,桶化和切片过程.对于泛化过程,应在Datagridview1中检索前四行,并在Datagridview2中检索后四行.检索数据时,应在*方法中查看一列.对于桶化过程,列名应更改,如我创建的名称,年龄,性别,教育程度,婚姻状况.但是在此过程中,应该像表一样查看姓名,婚姻状态,性别,年龄等信息.在切片过程中,datagridview1和datagridview2视图都像Name,Age这样的一列,而在另一列中性别,婚姻状况"列中的所有数据均应显示所有姓名和年龄.

如果您不了解我的概念,则只能看到像dis这样的视频,我应该实施:www.youtube.com/watch?v = C885Iw4QKzU


问候
Balamurugan

Hi,
I''m working in C# windows application.I have upload a file from Excel (which has 8 rows) to C# and from C# to Sql server.Now i need to retrieve the datas from Sqlserver to C#.I''m working on Generalization,Bucketization and Slicing Process.For Generalization process First Four rows should retrive in Datagridview1 and Last 4 rows in Datagridview2.When retriving the datas one column fully should view in * method.For bucketization process column name should change which i have created like Name,Age,Sex,Education,Marital status.But in this process it should retrive like Name,Maritalstatus,Sex,Age like this the table should view.In Slicing process both datagridview1 and datagridview2 view like one columns like Name,Age and in another column Sex,MaritalStatus all the datas t should display all the names nd age.

If u r not getting understand my concept means pl pl see dis video like dis only i should implement:www.youtube.com/watch?v=C885Iw4QKzU


Regards
Balamurugan

推荐答案

http://www .eggheadcafe.com/community/csharp/2/10044918/c--retrieve-from-sql-server-and-populate-to-datagridview.aspx [
http://social.msdn.microsoft.com/Forums/eu/csharplanguage/thread/de0093c3-4f17-40b2-991b-196167897234[^]
http://www.eggheadcafe.com/community/csharp/2/10044918/c--retrieve-from-sql-server-and-populate-to-datagridview.aspx[^]


这篇关于将值从Sql检索到datagridview C#的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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