Quantcast
Channel: Windows Forms Data Controls and Databinding forum
Viewing all articles
Browse latest Browse all 2535

DataTable.rowFilter Issue

$
0
0

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


Viewing all articles
Browse latest Browse all 2535

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>