Click here to Skip to main content
15,889,034 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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;
Posted
Updated 3-Jan-17 23:54pm
v2

1 solution

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.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900