J
john pp nn
Guest
Hi folks,
I have a textBox and a DataGrid that has a bindingSource to a DataTable.
Currently, when you being to type into the textbox, the dataTables filter changes so that only results show where the text of the textbox appears within one of the fields of the datatable.
Row 1 Alan Smith
Row 2 Calum Johnson
Row 3 John Brown
Row 4 Zander Black
eg If I type in "John", Only rows 2 and 3 (in that order) will be visible on the grid.
The client has asked for a change in this behavior. Now he wants the order changed so that names that "begin with" "John" appear first in the grid followed rows that "contain" "John". eg display row 3 then row 2 underneath.
Is this possible using rowfilter property?
John
jppnn
Continue reading...
I have a textBox and a DataGrid that has a bindingSource to a DataTable.
Currently, when you being to type into the textbox, the dataTables filter changes so that only results show where the text of the textbox appears within one of the fields of the datatable.
Row 1 Alan Smith
Row 2 Calum Johnson
Row 3 John Brown
Row 4 Zander Black
eg If I type in "John", Only rows 2 and 3 (in that order) will be visible on the grid.
The client has asked for a change in this behavior. Now he wants the order changed so that names that "begin with" "John" appear first in the grid followed rows that "contain" "John". eg display row 3 then row 2 underneath.
Is this possible using rowfilter property?
John
jppnn
Continue reading...