MLGrid_Sort

<< Click to Display Table of Contents >>

Navigation:  ThinBASIC Modules > UI (User Interface) > CONTROLS > Control Types > MLGrid Control > MLGrid Control Commands >

MLGrid_Sort

 

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