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 [C#] public bool CaseSensitive {get; set;} [C++] public: __property bool get_CaseSensitive(); public: __property void set_CaseSensitive(bool); [JScript] 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.
Remarks
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.
Example
[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
in the upper-left corner of the page.
Requirements
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