XPTable.Models.Table.EnsureVisible C# (CSharp) Method

EnsureVisible() public method

Ensures that the Cell at the specified CellPos is visible within the Table, scrolling the contents of the Table if necessary
public EnsureVisible ( XPTable.Models.CellPos cellPos ) : bool
cellPos XPTable.Models.CellPos A CellPos that contains the zero-based index /// of the row and column to scroll into view
return bool
        public bool EnsureVisible(CellPos cellPos)
        {
            return this.EnsureVisible(cellPos.Row, cellPos.Column);
        }

Same methods

Table::EnsureVisible ( int row, int column ) : bool

Usage Example

Beispiel #1
0
        void previius()
        {
            CellPos cell = new CellPos((int)numericUpDown1.Value, 0);

            table.TableModel.Selections.AddCell(cell);
            table.EnsureVisible(cell);
        }
Table