This documentation is archived and is not being maintained.

DataSet.CaseSensitive Property

Gets or sets a value indicating whether string comparisons within DataTable objects are case-sensitive.

[Visual Basic]
Public Property CaseSensitive As Boolean
public bool CaseSensitive {get; set;}
public: __property bool get_CaseSensitive();
public: __property void set_CaseSensitive(bool);
public function get CaseSensitive() : Boolean;
public function set CaseSensitive(Boolean);

Property Value

true if string comparisons are case-sensitive; otherwise, false. The default is false.


The CaseSensitive property affects how sorting, searching, and filtering operations are performed on each DataTable object contained in a DataSet when using the Select method.

By default, setting the CaseSensitive property for a DataSet also sets the CaseSensitive property of each associated DataTable to the same value.


[Visual Basic] The following example toggles the CaseSensitive property.

[Visual Basic] 
DataSet1.CaseSensitive = DataSet1.CaseSensitive Xor True

[C#, C++, JScript] No example is available for C#, C++, or JScript. To view a Visual Basic example, click the Language Filter button Language Filter in the upper-left corner of the page.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataSet Class | DataSet Members | System.Data Namespace | CaseSensitive