SfDataGridBehaviorSortColumnsToSQLOrder Method

Converts the specified sort list of columns (SortColumnDescription) into a SQL sort expression. Uses MappingName to designate the names of the fields to sort.

Definition

Namespace: Aliquo.Windows.Controls
Assembly: Aliquo.Windows.Controls (in Aliquo.Windows.Controls.dll) Version: 5.0.9179.22656
C#
public static string SortColumnsToSQLOrder(
	List<SortColumnDescription> sortList = null,
	bool useSquareBrackets = true
)

Parameters

sortList  ListSortColumnDescription  (Optional)
List of SortColumnDescription to process.
useSquareBrackets  Boolean  (Optional)
Indicates whether to use square brackets in field names.

Return Value

String
String containing the SQL sort expression, or if no sort order is set

See Also