AdvancedDataGridView.TreeGridCell.UnSited C# (CSharp) Method

UnSited() protected method

protected UnSited ( ) : void
return void
        protected internal virtual void UnSited()
        {
            // The row this cell is in is being removed from the grid.
            this.IsSited = false;
            this.Style.Padding = this._previousPadding;
        }

Usage Example

Example #1
0
 internal void Unsite()
 {
     foreach (TreeGridNode childNode in this.Nodes)
     {
         childNode.Unsite();
     }
     foreach (DataGridViewCell cell in this.Cells)
     {
         TreeGridCell treeCell = cell as TreeGridCell;
         if (treeCell != null)
         {
             treeCell.UnSited();
         }
     }
     this.isSited = false;
 }