可以将文本框放在数据网格视图的第一行上作为搜索或过滤器。 [英] Can be put textbox on first row of datagrid view to as a search or filter .

查看:65
本文介绍了可以将文本框放在数据网格视图的第一行上作为搜索或过滤器。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

你好,





我想在每一列的DatagridView的第一行显示TextBox。

它实际上应该用作搜索或过滤器控件。实际上我搜索了很多,但没有找到这样的东西。

我想知道是否可以在第一行添加TextBox作为搜索。

如果可能那么如何我们可以不使用任何第三方工具吗。





谢谢,



我尝试了什么:



第一行中的TextBox作为datagrid视图内的搜索

Hello,


I want to display TextBox on first row of DatagridView on each and every column.
It should ex actually work as a search or filter control. Actually i searched alot but didn't found anything like this.
I want to know whether its possible to add TextBox on First row as search.
And if possible then how can we do it without using any third party tool.


Thanks,

What I have tried:

TextBox in first row as search inside datagrid view

推荐答案

之前已经在这里提出过这个问题: Q& A [ ^ ]
This question has been asked here before: Q&A[^]


可能,但这是一个繁琐的过程第一行作为搜索行



相反,你应该尝试这个,将 DataGridView 列作为固定宽度并分别放置搜索文本框es 在每列的顶部,并参考本文将其复制到所有列。



根据TextBox中的值筛选DataGridView行 [ ^ ]
Possible, but it is a tedious process to make the first row as search row

Instead you shall try this, Make the DataGridView columns as fixed width and place respective search textboxes on top of each column and refer this article to replicate it all columns.

Filter DataGridView Rows Depending upon Value in TextBox[^]


这篇关于可以将文本框放在数据网格视图的第一行上作为搜索或过滤器。的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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