数据网格中的问题 [英] problem in data grid

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

问题描述

你能帮我吗?
我在我的项目中遇到问题.我创建了一个用于输入详细信息的注册表单,并且很明显,我的问题是从该数据库中选择数据到我的数据网格视图,我想在参考编号的基础上选择某个字段以进行网格视图(我在sql中创建的字段),例如FROM that reff no TO reff no.我不知道该查询,所以请帮助我.我使用C#asmy语言.

Hi can you help me ?
I had problem in my project .i create one registration form for entering the details and it works clearly my problem is on selecting data from that database to my data grid view i want to select some field to grid view on the base of reference no(the field i created in sql) like FROM that reff no TO reff no . i didn''t know the query so please help me. i used C# asmy language .

推荐答案



请使用之间"运算符.

Hi,

Plese use "between" operator.

SELECT * FROM TABLE_NAME WHERE ID BETWEEN 10 AND 100 



"ID"是在"TABLE_NAME"表中定义的列.用您的自定义范围替换10和100.



"ID" is an column defined in "TABLE_NAME" table. Replace 10 and 100 by your custom range.


这篇关于数据网格中的问题的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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