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);
true if string comparisons are case-sensitive; otherwise, false. The default is false.
The CaseSensitive property affects the following operations of each DataTable contained in a DataSet: sorting, searching, and filtering.
By default, setting the CaseSensitive for a DataSet also sets each of its constituent DataTable objects' CaseSensitive properties to the same value.
The following example toggles the CaseSensitive property.
[Visual Basic]
DataSet1.CaseSensitive = DataSet1.CaseSensitve Xor True
DataSet Class | DataSet Members | System.Data Namespace | CaseSensitive