如何在DataGridView中的ComboBoxColumn中筛选列表 [英] How to Filter List in ComboBoxColumn in DataGridView

查看:170
本文介绍了如何在DataGridView中的ComboBoxColumn中筛选列表的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

嗨!

我需要基于Widows的Solution.In web我使用Webservices(Ajax / AutocompleteExtender)解决了。



我有在DataGridView中的comboboxcolunn中绑定数据。我想根据输入的单词过滤列表。

可以通过设置属性自动进行。如果不可能,可以通过传递SQL查询。



它应该是类似于我使用像operater(''%'+ txt1.Text +%'的结果')按钮事件。但是在组合框中我想要自动过滤器。



我使用独立的ComboBox它可以自动从列表开始过滤而无需SQL查询。

但是我希望列表在从DataGridView中的ComboBox和ComboBoxColumn中的begening或middle中的任何位置进行比较后,如果可能或任何方式不使用SQL查询。

Hi !
I required Widows Based Solution.In web I solved by using Webservices(Ajax/AutocompleteExtender).

I have bind data in a comboboxcolunn in DataGridView. I want to filter the list according to words typed.
It may be automatically by setting the property. If not possible it may be by passing SQL Query.

It should be similar result as I use like operater (''%"+ txt1.Text +"%'')on button Event. But in combobox I want automatic filter.

I used independent ComboBox it works filter from begining of the list automatically without SQL Query.
But I want list after typing words compared from any place either from begening or middle in both ComboBox and ComboBoxColumn in DataGridView without using SQL Query if possible or any ways.

推荐答案

有看看:带有自动筛选功能的ASP.NET DataGrid [ ^ ]



如果您使用的是Windows Forms,则 DataGridView Filter Popup [ ^ ]提供了一些东西类似的。





祝你好运

Espen Harlinn
Have a look at: An ASP.NET DataGrid with AutoFilter[^]

If you are using Windows Forms then DataGridView Filter Popup[^] provides something similar.


Best regards
Espen Harlinn


这篇关于如何在DataGridView中的ComboBoxColumn中筛选列表的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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