Last active
October 12, 2020 10:21
-
-
Save Zujaj/b991426f1305a6d1f948d7d6d68bd8e0 to your computer and use it in GitHub Desktop.
Enable or Disable DataGridView AutoFiltering
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/// <summary> | |
/// Enable filtering on grid columns by setting the value to true. | |
/// It's false by default. | |
/// </summary> | |
/// <param name="value"></param> | |
private void EnableGridFilter(bool value) | |
{ | |
RankColumn.FilteringEnabled = value; | |
OccupationColumn.FilteringEnabled = value; | |
JobColumn.FilteringEnabled = value; | |
SalaryColumn.FilteringEnabled = value; | |
RateColumn.FilteringEnabled = value; | |
DateColumn.FilteringEnabled = value; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment