DataGrid REALbasic Plugin

DataGridCell Class

DataGridCell class allows to manipulate DataGrid data.

Note
A DataGrid has no idea about what is happening in a DataGridCell.
Modifying any property of a DataGridCell will never trigger a redraw in the DataGrid.
Use the either Refresh method or the more preferred LockDrawing mechanism to redraw a DataGrid.

Also note that any change done on a DataGridCell will not be remembered unless its done in the RequestData event or if the row which owns the cell is marked as static. This is because of the nature of the DataGrid which is to only store in memory what is seen on the screen.

Object
   DataGridCell

class DataGridCell

Properties

AlignmentTo set or get the alignment of the cell.
BorderBottomTo set or get the bottom border of the cell.
BorderColorTo set or get the color of the cell's border.
BorderLeftTo set or get the left border of the cell.
BorderRightTo set or get the right border of the cell.
BorderTopTo set or get the top border of the cell.
BorderWidthTo set or get the width of the cell's border.
CheckedTo set or get the checked property of a cell control then use the Checked property.
ControlLeftIndentTo set or get the left indent of a cell control then use the ControlLeftIndent property.
ControlTopIndentTo set or get the left indent of a cell control then use the ControlTopIndent property.
EnabledTo set or get the enabled property of a cell control then use the Enabled property.
FactoryTypeThis can be used to get the factory ID of a cell.
ImageTo set a picture in the cell.
IsExtendedThis read only property returns True if the cell has been extended.
LeftIndentTo set or get the left indent of the cell's text or progressbar.
MarkerGets or sets a marker for the cell.
MaxTo set or get the maximum value of a progressbar in ProgressBar style cell then use the Max property.
RightIndentTo set or get the right indent of the cell's text or progressbar.
StyleUse this property to set or get the Style for a cell. (This property can also be used to mutate a existing style)
TextTo set or get the text of the cell.
TopIndentTo set or get the top indent of the cell's text or progressbar.
ValueTo set or get the value of a progressbar in ProgressBar style cell, or the value of a checkbox in a checkbox cell then use the Value property.

Methods

SetPictureInnerObjectPtrSets the picture for the cell object from a given integer pointer.
SetStyleInnerObjectPtrSets the style for the cell object from a given integer pointer.

Supported Platforms:

  • PPC - MacOS 9
  • Carbon - MacOS 9 and MacOS X (PEF)
  • MacOS X PPC - (Mach-O)
  • MacOS X Universal Binary (Mach-O)
  • Win32 - Windows
  • Linux x86