如何检索“过滤器”来自C#windows窗体中datagridview.datasource的属性? [英] How to retrieve the "filter" property from datagridview.datasource in C# windows forms?

查看:64
本文介绍了如何检索“过滤器”来自C#windows窗体中datagridview.datasource的属性?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想获取已经从datagridview.datasource应用的过滤器的值。



我尝试了什么:



I want to get the value of the filter already applied from datagridview.datasource.

What I have tried:

BindingSource bs = new BindingSource();
bs.DataSource = datagridview.DataSource;
bs.Filter = ? //datagridview.Columns[5].HeaderText.ToString;
datagridview.DataSource = bs;

推荐答案

您已经在我们如何从C#中的datagridview获取过滤器应用的值? [ ^ ]。请不要重新发布。
You already asked this question at How do we get the value of filter applied in the columns from a datagridview in C#?[^]. Please do not repost.


这篇关于如何检索“过滤器”来自C#windows窗体中datagridview.datasource的属性?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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