asp.net.ph

DataSet.Locale Property

System.Data Namespace   DataSet Class


Sets or retrieves the locale information used to compare strings within the table.

Syntax


Script DataSet.Locale [ = objCultureInfo ]

Property Value


objCultureInfo A CultureInfo object that contains data about the user's machine locale.

The property is read/write with no default value.

Remarks

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.

Example

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
See Also

DataSet Members   CultureInfo Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph