예제 #1
0
        private TreeDataRowBase CreateHeaderRow(int rowIndex, VisibleLinesCollection visibleColumns)
        {
            var dr = new TreeDataRow();

            dr.RowIndex = rowIndex;
            dr.TreeGrid = this.Owner;
            dr.RowType  = TreeRowType.HeaderRow;
            dr.InitializeTreeRow(visibleColumns);
            return(dr);
        }
예제 #2
0
        private TreeDataRowBase CreateDataRow(int rowIndex, VisibleLinesCollection visibleColumns)
        {
            var treeRow = new TreeDataRow();

            treeRow.RowIndex = rowIndex;
            treeRow.RowType  = TreeRowType.DefaultRow;
            treeRow.TreeGrid = this.Owner;
            var node = this.Owner.GetNodeAtRowIndex(rowIndex);

            treeRow.Node          = node;
            treeRow.Level         = node.Level;
            treeRow.HasChildNodes = node.HasVisibleChildNodes;
            treeRow.RowData       = node.Item;
            treeRow.InitializeTreeRow(visibleColumns);
            treeRow.RowElement.UpdateIndentMargin();
            return(treeRow);
        }