My application has a populated datatable and binds it to a ddatagridview by setting the datasource property.
At run time I want to filter this table. When the user clicks a button I run the following code:
dataManager.VDMSTables.DataTable.DefaultView.RowFilter = column + " LIKE '%" + criteria + "%'";
All the classes are populated correctly. At runtime when I reach this line I get the following error message:
Syntax error: Missing operand after 'Data' operator. The variables that I use to build the rowfilter are correctly populated. Even when I hard code a string I still get this same error. Why?