SortLocale Property
Description
Specifies how text, dates, times, and currencies are sorted based on locale.
Property Type
Read-write property
Syntax (Visual Basic)
Public Property SortLocale() As Long
Remarks
By default, the Grid control will sort using the computer's currently set locale. To change this, the LCID for the desired locale must be set using the SortLocale property. The LCID for your locale can be looked up in the MSDN documentation.
The LCID property specifies how text, dates, times, and currencies are formatted. LCIDs are not the same for each geographical locale. Some locales format dates as YY-MM-DD and some format dates as MM-DD-YYYY. The LCID property is read/write.
Example
' Uses the Norwegian sorting rules
wndGridControl.SortLocale = 1044
See Also
Copyright (c) 1998-2024 Codejock Technologies. All rights reserved.