Navigation:  thinBasic Modules > UI (User Interface) > Dedicated Control Functions > MLGrid Control >

MLGrid_Sort

Previous pageReturn to chapter overviewNext page

 

Description

 

Sort grid lines based on a column data.

 

Syntax

 

n = MLGrid_Sort(hGrid, Column, AscDesc )

 

Returns

 

Number

 

Parameters

 

Name

Type

Optional

Meaning

hGrid

Number

No

handle to grid control, the one returned by CONTROL ADD MLGRID ...

Column

Number

No

Column number

AscDesc

Number

No

Sort ascending or descending.

If zero, sort will be ascending otherwise descending

 

Remarks

 

This function automatically regenerate row header number.

 

Restrictions

 

See also

 

Examples