如何分类到数据库 [英] How to make sort into database

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

问题描述

嗨 我的表格包含姓名,邮件,标题和国家/地区
&
我想让组合框从数据库中读取国家/地区,并在datagridview上显示其余数据
我该怎么办?
thx

Hi i''ve table contain name & mail & title & country
&
i want to make combobox read from the database the country & show the rest of data on datagridview
how can i do it?
thx

推荐答案

您无法使组合框读取任何内容.您可以使用数据绑定从您选择使用的任何数据源中填充它.

有大量可用的资源来描述如何使用数据绑定来填充控件.你读过吗?
You can''t make a combobox read from anything. You use databinding to populate it from whatever datasource you choose to use.

There are a plethora of source available describing how to use databinding to populate controls. Have you read any?


这篇关于如何分类到数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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