Using RadarCube as a data source for Data-related components
Posted by Vladimir Lyutetsky on 20 March 2007 06:54 AM
|
|
TOLAPGrid as a component for displaying data, implements the IListSource interface and, hence, can be a data source for other components - data consumers such as Chart-components, export components and so on. TOLAPGrid can give the data "out" in different ways. It can be:
The behavior of the Grid as a data source is controlled by the TOLAPGrid.ListSourceMode property. By default, this property is set in ctmNone (which means the Grid doesn't operate as a data source). If you assign another value to the ListSourceMode property, remember that it might slightly slow down the performance of the Grid, especially on big Cellsets. When either Cellset or the selected cells are changed, the given out data is changed as well. If the components - the data consumers - are able to keep track of the changes (like the standard DataGridView component), then you don't need to do anything else. As a rule, to reflect data changes in other components, it is enough to call their DataBind() method. Also the TOLAPGrid.OnSelectionChange event handler might be a good way to deal with the changed selection in the Grid. Another way to get the Grid data is to call on the TOLAPGrid.GetOLAPData method. | |
|