The Column Model
The horizontal structure of the grid is defined by the XGridColumnModel implemented in DefaultGridColumnModel
The XGridColumn implemented in the properties and behavior of a single column. Use the XGridColumnModel::addColumn() to add a column to the column model.
The Data Model
All row data are stored in the XGridDataModel.
Use the DefaultGridDataModel to add XGridDataModel::addRow() or remove XGridDataModel::removeRow() rows.
The column and data model must be set at the UnoControlGridModel::ColumnModel and UnoControlGridModel::GridDataModel properties.
Selection
If you are interested in knowing when the selection changes implement a
XGridSelectionListener and add the instance with the method
XGridSelection::addSelectionListener().
You than will be notified for any selection change.
The XGridSelection interface provides a bunch of methods to set and get selection for the grid control.