SMART datagrid v.1 > Classes > GridView

Back  Forward

DataLudi.GridView.onGrouping  event

It will be fired just before starting row grouping.
 If explicitly return false within event handler, it will not proceed grouping. After committing grouping, onGrouped event will be fired. 

function onGrouping (grid: GridView, fields: [Integer]): Boolean;
Returns
Boolean
Parameters
grid - GridView.
fields - [Integer].
Code -1
    grid.onGrouping = function (grid, fields) {
        if (fields.length > 2) {
            return false;
        }
    };
See Also
onGrouped
groupBy
Examples
RowGrouping