Hello -
VS2010
I'm trying to filter a datagridview using a BindingSource
I have a combo in my form that hold a Category Values: m_cFilterByCategoryCombo
I have a datagridview : m_cSTDTeleDataGridView
it is in a pagetab
the combo is in the pagetab as well.
the botton m_cFilter activatre the filter
I use this code to filter.
private void m_cFilter_Click(object sender, EventArgs e)
{
string myFilter = string.Format("CCategory = '{0}'", m_cFilterByCategoryCombo.SelectedValue);
BindingSource bsSTDTele = new BindingSource();
bsSTDTele.DataSource = m_cSysSetting.CSTDTeleSettings.CParamList;
bsSTDTele.Filter = myFilter;
bsSTDTele.SupportsFiltering
m_cSTDTeleDataGridView.DataSource = bsSTDTele;
}
when i check the bsSTDTele.SupportsFiltering it is FALSE
and i think the list is not filterable.
am i right ?
if i am. is there a way to make this list filterable ???
If I'm doing it all wrong and the logic is different - please let me know as well...
Thank you very much...
Alu