如何使用C#将数据从SQL Server加载到combox [英] How to load data from sql server into combox using c#

查看:117
本文介绍了如何使用C#将数据从SQL Server加载到combox的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我是C#的新手.我想将数据从sql server加载到我的组合框中.我该如何进行,请指导我进行操作.

预先谢谢您.

解决方案

从codeproject中查看此链接

在ComboBox中从数据库填充数据 [ ^ ]

步骤如下:
1.打开浏览器,然后转到 http://www.google.com [ [ ^ ]对于初学者可能很有用.但是为了完全理解这一点,我建议您学习 ADO.Net [


这是一个非常广泛的问题!
在这里开始阅读:
MSDN:如何:将Windows窗体ComboBox或ListBox控件绑定到数据 [ ^ ]

您应该已经知道如何从SQL获取数据-如果您不这样做,那么我们需要知道您通常如何访问它,因为有很多不同的方式!


Hi I am a newbie to c#. I want to load data from sql server into my combobox. How do i proceed please guide me the steps.

Thank you in advance.

解决方案

check out this link from codeproject

Populate data from database in a ComboBox[^]


Here are the steps:
1. Open your browser, and go to http://www.google.com[^]
2. Type database to combobox .net
3. Be amazed with the abundance of results of your search query.
4. Some articles are written in VB.Net, some are in C#. Choose those that are in C#.

I think this[^] can be useful for starters. But in order to fully understand this, I suggest you learn ADO.Net[^] first.


That''s a very broad question!
Start reading here: MSDN: How to: Bind a Windows Forms ComboBox or ListBox Control to Data[^]

You should know already how to get the data from SQL - if you don''t then we need to know how you would normally access it as there are quite a few different ways!


这篇关于如何使用C#将数据从SQL Server加载到combox的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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