Last active
October 12, 2020 10:16
-
-
Save Zujaj/1bc08ae9b9aecf531c71862122fbe307 to your computer and use it in GitHub Desktop.
Demonstrates the DataGridView_DataBindingComplete
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
private void dataGridView1_DataBindingComplete(object sender, DataGridViewBindingCompleteEventArgs e) | |
{ | |
string filterStatus = DataGridViewAutoFilterColumnHeaderCell.GetFilterStatus(dataGridView1); | |
if (string.IsNullOrEmpty(filterStatus)) | |
{ | |
ShowAllLabel.Visible = false; | |
FilterStatusLabel.Visible = false; | |
} | |
else | |
{ | |
ShowAllLabel.Visible = true; | |
FilterStatusLabel.Visible = true; | |
FilterStatusLabel.Text = filterStatus; | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment