You need to use the SearchOptions
list on the JQGridColumn
to specify which filter criteria you want to use for a given column.
If you leave the SearchOptions
empty then it will display all the search rules, so you need to write something like this:
private void SetUpSearchDialogGrid(JQGrid grid)
{
var column = grid.Columns.Find(c => c.DataField == "Id");
//...
column.SearchOptions.Add(SearchOperation.Contains);
column.SearchOptions.Add(SearchOperation.DoesNotContain);
//..
}