System.Data Namespace DataSet Class
Sets or retrieves the locale information used to compare strings within the table.
Script |
DataSet.Locale [ = objCultureInfo ] |
objCultureInfo |
A CultureInfo object that contains data about the user's machine locale. |
The property is read/write with no default value.
The Locale property specifies the locale for which sorting will apply.
By default, setting the Locale for a DataSet also sets each of its constituent DataTable objects' Locale properties to the same value.
The following example gets the CultureInfo for a DataSet and prints the DisplayName and EnglishName properties.
Private Sub GetCultureInfo ( )
Dim ci As System.Globalization.CultureInfo
ci = myDataSet.Locale
Response.Write ( ci.DisplayName, ci.EnglishName )
End Sub
DataSet Members CultureInfo