LayoutFarm.UI.GridTable.GetColumnIter C# (CSharp) Method

GetColumnIter() public method

public GetColumnIter ( ) : IEnumerable
return IEnumerable
        public IEnumerable<GridColumn> GetColumnIter()
        {
            return this.cols.GetColumnIter();
        }
        public IEnumerable<GridRow> GetRowIter()

Usage Example

Beispiel #1
0
            public void MoveRowAfter(GridRow fromRow, GridRow toRow)
            {
                int toRowIndex = toRow.RowIndex;

                if (fromRow.RowIndex < toRowIndex)
                {
                    toRowIndex -= 1;
                }

                foreach (GridColumn col in table.GetColumnIter())
                {
                    col.MoveRowAfter(fromRow, toRow);
                }

                rows.RemoveAt(fromRow.RowIndex);
                rows.Insert(toRowIndex, fromRow);
                UpdateRowIndex(fromRow, toRow);
            }