Locale
CultureInfolocale
= DataSet.Locale; DataSet.Locale =locale
;
Gets or sets the locale information that is the basis of string comparisons in tables.
The following code demonstrates how to set the
Locale
property of the DataSet
to Spanish:
DataSet ds = new DataSet(); ds.Locale = new CultureInfo("es");
The Locale
property determines how sorting,
comparisons, and filtering will be performed within the
DataSet
. The CultureInfo
class
exists in the System.Globalization
namespace.
If the Locale
property for a
DataTable
contained in the
DataSet
isn’t explicitly set, it
defaults to the Locale
value for the
DataSet
it belongs to.
The default for the Locale
property is the current
system CultureInfo
.