private int GetColumnLeft(int column) { if (column < _columnSizes.FrozenCount) { return(_columnSizes.GetFrozenPosition(column) + HeaderWidth); } return(_columnSizes.GetSizeSum(FirstVisibleColumnScrollIndex, column - _columnSizes.FrozenCount) + HeaderWidth + FrozenWidth); //return (column - FirstVisibleColumn) * ColumnWidth + HeaderWidth; }
private int GetRowTop(int row) { if (row < _rowSizes.FrozenCount) { return(_rowSizes.GetFrozenPosition(row) + HeaderHeight); } return(_rowSizes.GetSizeSum(FirstVisibleRowScrollIndex, row - _rowSizes.FrozenCount) + HeaderHeight + FrozenHeight); //return (row - FirstVisibleRow) * RowHeight + HeaderHeight; }
private int GetRowTop(int row) { var hFilter = IsColumnFilterEnabled ? FilterHeight : 0; if (row < _rowSizes.FrozenCount) { return(_rowSizes.GetFrozenPosition(row) + HeaderHeight + hFilter); } return(_rowSizes.GetSizeSum(FirstVisibleRowScrollIndex, row - _rowSizes.FrozenCount) + HeaderHeight + FrozenHeight + hFilter); //return (row - FirstVisibleRow) * RowHeight + HeaderHeight; }