如何从数据网格视图获取数据 [英] how to fetch data from data grid view

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

问题描述

当数据库中已经存在数据时,我无法从数据网格视图中获取数据.例如:-当我在文本字段中输入学生编号时,我应该能够获取该数据的全部详细信息

I am not able to fetch the data from data grid view when the data is already present in the data base.Example:- when i enter the student no in the text field i should be able to get the entire detail of that particular student no which i have entered .

推荐答案

如果要从数据库中获取数据,则将数据重新绑定到datagridview中,如果已经在datagridview中包含数据,则进行过滤特定行中的数据.
If you want to get data from data base then rebind your data to datagridview and if you already have data in datagridview then filter data from particular row.


这篇关于如何从数据网格视图获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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