Hello
We have a particular grid in our system where a user can say where the data comes from, they can choose a database or excel spreadsheet.
When the grid is bound they can choose which column they want to filter from a drop down and enter the filter in a textbox.
string filterExpression; |
filterExpression = "(" + list.SelectedItem.Value + " Like '%" + txt.Text + "%'" + ")"; Grid.MasterTableView.FilterExpression = filterExpression; |
The grid is then rebound as usual.
This all works well when they choose a database as their datasource, but when an excel spread sheet is used it does not work.
Should the filter work on excel datasources? or from my code extract above can you see an obvious reason why it would not work?
Thanks