Quantcast
Channel: Visual C# forum
Viewing all articles
Browse latest Browse all 31927

Make binding source filter case insensitive

$
0
0

Right now I have a DataGridView DataSource property set as a bindingsource.

We have also build a custom control Called 'filter' where when I type into the box it builds a filter string and then sets the Filter property of the bindingsource.

Right now the dataTable populates and a column will have values like "BCAA" or "CaPP".

If a user types in a lower case 'b' then both items are removed (filtered).  However if a Use types in a upper case 'B' then only "CaPP" will remain. 

Really I want lower or upper case to be irrelavent; however, it does not seem to be working and I have no idea why.  The filter string I use is:

"CONVERT(IndividualTypeCode, 'System.String') LIKE 'b%'"


Viewing all articles
Browse latest Browse all 31927

Trending Articles



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