GRID.ItemReadOnly

Previous  Next

 

state = GRID.ItemReadOnly( BYVAL nControl AS INTEGER,

                           BYVAL row      AS INTEGER,

                           BYVAL column   AS INTEGER,

                          [BYVAL state    AS INTEGER] ) AS INTEGER

 

 

 

 

Sets the individual cell to readl-only.  This is will override the GRID.Editable state on individual cells.

 

Example:

 

' Make first row Read Only and Center Items

GRID.ItemReadOnly( nControl, 1, -1, TRUE )

GRID.ItemFormat( nControl, 1, -1, MG_DT_CENTER )

GRID.Refresh( nControl )