datagridview焦点问题 [英] datagridview focus issue

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

问题描述

我有桌面应用程序

我有一个表单调用项目列表...其中只有两个控件,一个是datagridview,另一个是搜索文本框... datagrid从item_list表中获取所有数据..



我的问题是,当我在搜索文本框中写入时,数据网格专注于该记录,并且还专注于搜索框文本框...我想要两个控制焦点......怎么可能?请给我任何建议

解决方案

你不能同时关注两个控件:焦点指示键盘输入的去向,它不能转到两个控件同时

i have desk top application
I have one form call item list...which have only two control one is datagridview and other is search textbox...datagrid fetch the all data from item_list table..

my problem is that when i write in search textbox the data grid focuses to that record and also focus on search box textbox...i want both control focus...how it is possible?? pls give me any suggestion

解决方案

You cannot focus on two controls at the same time: the focus indicates where keyboard input will be going, and it cannot go to two controls simultaneously.


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

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