DataTable::CaseSensitive Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Indicates whether string comparisons within the table are case-sensitive.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

public:
property bool CaseSensitive {
	bool get();
	void set(bool value);
}

Property Value

Type: System::Boolean

true if the comparison is case-sensitive; otherwise false. The default is set to the parent DataSet object's CaseSensitive property, or false if the DataTable was created independently of a DataSet.

The CaseSensitive property affects string comparisons in sorting, searching, and filtering.

The following example calls the Select method twice on a DataTable. The first time, the CaseSensitive property is set to false, the second, to true.

No code example is currently available or this language may not be supported.

.NET Framework
Available since 1.1
Return to top
Show: