SMART datagrid v.1 > Classes > GridBase

[ grids ver.1.3.6]   Back  Forward

DataLudi.GridBase.descendantDataCount  property

The number of all Data Rows or Tree Rows created in the grid. 

It also contains descendant rows of Group Row or Tree Row which is not displayed due to being scrolled or in collapsed state. And, it will exclude the ones not being connected to the rows of data set such as group header or footer, etc. You can know the number containing group header or footer through descendantRowCount. And, you can know the number of rows which is being displayed in the grid screen through rowCount, displayRowCount and fullDisplayRowCount

If data rows of column filter, row filter or hidden state exist, this number will be smaller than Row Count of Data Set being connected to the grid. 

If this number is changed, onDescendantRowCountChanged event will be fired. 

Getter
function descendantDataCount(): Integer
Setter
function setDescendantDataCount(value: Integer)
Code -1
    $('#descendantCount').click(function () {
        alert(grid.descendantDataCount());
    }
See Also
descendantRowCount
rowCount
displayRowCount
fullDisplayRowCount
onDescendantDataCountChanged
GridView.setHidden
DataSet.rowCount
Examples
Row Counts
Tree Row Counts
Hidden Rows