Tags: bindingsource, bindingsourcesort, case-insensitive, case-sensitive, default, forms, net, property, searching, sort, web

How to Sort with BindingSource.Sort Property Case-Sensitive.

On .Net » Web Forms

1,802 words with 1 Comments; publish: Sun, 06 Jan 2008 16:30:00 GMT; (10046.88, « »)

Hi.

I've been searching how to Sort Case-Sensitive with BindingSource.Sort Property.

By Default, BindingSource seems to Sort Case-Insensitive.

Someone knows how to resolve this issue?

Please Help Me.

All Comments

Leave a comment...

  • 1 Comments
    • BindingSource.Sort Property is used to get or set the column names used for sorting, and the sort order for viewing the rows in the data source, not used to set Case-Sensitive.

      E.g create a BindingSource object.

      BindingSource source1 = new BindingSource();

      source1.DataSource = dataView1 or dataTable1 or dataSet1;

      Then you should set CaseSensitive property (True or False) of dataView1 or dataTable1 or dataSet1.

      E.g. dataView1.CaseSensitive=True; (False by default)

      Please check this thread.

      #1; Fri, 28 Sep 2007 13:23:00 GMT