I filled the datasource of a control and then try to apply the filter. But after applying filter, it updates the datasource of the binding source to 0.
private void SetFilterIntoBindingNavigator()
{
try
{
if (string.IsNullOrEmpty(this.FilterQuery.ToString()) || this.IsResetFilter)
this.bindingNavigator1.BindingSource.RemoveFilter();
else
this.bindingNavigator1.BindingSource.Filter = this.FilterQuery.ToString();
}
catch (Exception ex)
{
}
}
Why ?