Skip to content

Instantly share code, notes, and snippets.

@Zujaj
Last active October 12, 2020 10:16
Show Gist options
  • Save Zujaj/1bc08ae9b9aecf531c71862122fbe307 to your computer and use it in GitHub Desktop.
Save Zujaj/1bc08ae9b9aecf531c71862122fbe307 to your computer and use it in GitHub Desktop.
Demonstrates the DataGridView_DataBindingComplete
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