GRID.SetDefaultType

Previous  Next

 

state = GRID.SetDefaultType( BYVAL nControl AS INTEGER,

                             BYVAL type     AS INTEGER ) AS INTEGER

 

 

 

 

Sets the default cell type of the Grid.

 

Example:

 

GRID.SetDefaultType( nControl, MG_CELL_REAL  )

 

GRID.ColumnResize( nControl, FALSE );

GRID.RowResize( nControl, FALSE );

GRID.EnableSelection( nControl, FALSE );

GRID.Editable( nControl, FALSE );

GRID.FrameFocusCell( nControl, FALSE );

GRID.SetDefaultFormatString( nControl, MG_CELL_INTEGER, "%1.2f" )

GRID.RowCount( nControl, 10 )

GRID.ColumnCount( nControl, 2 )

GRID.RowHeight( nControl, 1, 32 )

GRID.ItemLong( nControl, 1, 1, 12 )

GRID.Refresh( nControl )