How to get visible row count of DataGridView after BindingSource.Filter?
Try this: datagridviewname.Rows.GetRowCount(DataGridViewElementStates.Visible);
Jared,
I recently had to do this very thing. What worked for me was using the DataGridView.Rows.Count property after I applied the filter.
Are you setting your data source to the DataSource property of the BindingSource or the DataGridView? It should be the BindingSource.
HTH-Jay
I screwed something else up. Jay is right:
dataGridViewCases.Rows.Count
works, as does:
bindingSource.Count