C# Класс SourceGrid.GridVirtual

Наследование: CustomScrollControl
Показать файл Открыть проект Примеры использования класса

Защищенные свойства (Protected)

Свойство Тип Описание
m_MouseCellPosition Position
m_MouseDownPosition Position

Private Properties

Свойство Тип Описание
GetVisibleRegion IEnumerable
PerformStretch void
SetScrollArea void

Открытые методы

Метод Описание
ArrangeLinkedControls ( ) : void

Refresh the linked controls bounds

AutoSizeCells ( ) : void

Auto size all the columns and all the rows with the required width and height

AutoSizeCells ( Range p_RangeToAutoSize ) : void

Auto size the columns and the rows speified

ChangeDragCell ( CellContext cell, DragEventArgs pDragEventArgs ) : void

Fired when the cell in the drag events change. For internal use only.

ChangeMouseCell ( Position p_Cell ) : void

Fired when the cell under the mouse change. For internal use only.

ChangeMouseDownCell ( Position p_MouseDownCell, Position p_MouseCell ) : void

Change the cell currently under the mouse

ChangeMouseSelectionCorner ( Position p_Corner ) : void

Fired when the corner of the mouse selection change. For internal use only.

CheckPositions ( ) : void

Check if the positions saved are still valid, for example if all the selected cells are still valid positions, if not the selection are removed without calling any other methods.

ClearValues ( RangeRegion region ) : void

Clear all the selected cells with a valid Model.

GetCell ( Position p_Position ) : Cells.ICellVirtual

Return the Cell at the specified Row and Col position. This method is called for sort operations and for Move operations. If position is Empty return null. This method calls GetCell(int p_iRow, int p_iCol)

GetCell ( int p_iRow, int p_iCol ) : Cells.ICellVirtual

Return the Cell at the specified Row and Col position. Abstract, must be implemented in the derived class.

GetCellsAtColumn ( int p_ColumnIndex ) : Cells.ICellVirtual[]

Returns all the cells at specified column position

GetCellsAtRow ( int p_RowIndex ) : Cells.ICellVirtual[]

Returns all the cells at specified row position

GetFixedLeftArea ( ) : Rectangle
GetFixedTopArea ( ) : Rectangle
GetFixedTopLeftArea ( ) : Rectangle
GetPositionType ( Position position ) : CellPositionType

Returns the type of a cell position

GetScrollableArea ( ) : Rectangle
GetVisibleColumns ( Rectangle displayRectangle, bool returnsPartial ) : List
GetVisibleColumns ( bool returnsPartial ) : List
GetVisibleRows ( Rectangle displayRectangle, bool returnsPartial ) : List
GetVisibleRows ( bool returnsPartial ) : List
GridVirtual ( ) : System

Grid constructor

InvalidateCell ( Position position ) : void

Force a cell to redraw.

InvalidateRange ( Range range ) : void

Force a range of cells to redraw.

IsCellVisible ( Position position, bool partial ) : bool

Indicates if the specified cell is visible.

MouseSelectionFinish ( ) : void

Fired when the mouse selection finish. See also MouseSelectionRange.

OnCellsAreaChanged ( ) : void

Force to recalculate scrollbars and panels location. Used usually after changing width and height of the columns / rows, or after adding or removing rows and columns.

OnUserException ( ExceptionEventArgs e ) : void

Event fired when an exception is throw in some method that require a notification to the user. If not handled by the user (Handled property = false) a MessageBox is used to display the exception.

PositionAtPoint ( Point point ) : Position

Returns the cell at the specified grid view relative point (the point must be relative to the grid display region), SearchInFixedCells = true. Return Position.Empty if no valid cells are found.

PositionToCellRange ( Position pPosition ) : Range

This method converts a Position to the real range of the cell. This is usefull when RowSpan or ColumnSpan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0-0,1 and if you call this method with 0,1 return again 0,0-0,1.

PositionToRectangle ( Position position ) : Rectangle

Get the rectangle of the cell respect to the client area visible, the grid DisplayRectangle. Returns Rectangle.Empty if the Position is empty or if is not valid.

PositionToStartPosition ( Position p_Position ) : Position

This method converts a Position to the real start position of cell. This is usefull when RowSpan or ColumnSPan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0 and if you call this method with 0,1 return again 0,0. Get the real position for the specified position. For example when p_Position is a merged cell this method returns the starting position of the merged cells. Usually this method returns the same cell specified as parameter. This method is used for processing arrow keys, to find a valid cell when the focus is in a merged cell. For this class returns always p_Position.

ProcessSpecialGridKey ( KeyEventArgs e ) : void

Process Delete, Ctrl+C, Ctrl+V, Up, Down, Left, Right, Tab keys

RangeAtArea ( CellPositionType areaType ) : Range

Get the range of cells at the specified dispaly area. This method consider only the visible cells using the current scroll position. Returns a single Range for the specified grid area (scrollable, fixedtop, fixedleft, fixedtopleft). Returns Range.Empty if there isn't a valid range in the specified area.

RangeToRectangle ( Range range ) : Rectangle

Returns the relative rectangle to the current scrollable area of the specified Range. Returns a Rectangle.Empty if the Range is not valid.

RangeToSize ( Range range ) : Size
ScrollOnPoint ( Point mousePoint ) : void

Move the scrollbars to the direction specified by the point specified. Method used by the Mouse multi selection (MouseSelection.cs)

ShowCell ( Position p_Position, bool ignorePartial ) : bool

Scroll the view to show the cell passed. Ensure that if the cell if invisible or partial visible it will be totally visible

SortRangeRows ( IRangeLoader p_RangeToSort, int keyColumn, bool p_bAsc, IComparer p_CellComparer ) : void

Sort a range of the grid

SortRangeRows ( Range p_Range, int keyColumn, bool p_bAscending, IComparer p_CellComparer ) : void

Sort a range of the grid.

Защищенные методы

Метод Описание
CreateColumnsObject ( ) : SourceGrid.ColumnsBase

Abstract method used to create the columns object.

CreateRowsObject ( ) : SourceGrid.RowsBase

Abstract method used to create the rows object.

CreateSelectionObject ( ) : SelectionBase

Virtual factory method used to create the SelectionBase derived object. The base method create a different object based on the value of SelectionMode property.

Dispose ( bool disposing ) : void

Clean up any resources being used.

GetScrollColumns ( int displayWidth ) : int

Calculate the number of columns to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of columns and the available area.

GetScrollPositionToShowCell ( Position position, bool partial, Point &newScrollPosition ) : bool

Indicates if the specified range is visible

Return the scroll position that must be set to show a specific cell.

GetScrollRows ( int displayHeight ) : int

Returns the logical scroll size (usually Rows and Columns) for the specified display area.

Returns true if the vertical scrollbar is required

Returns true if the horizontal scrollbar is required

Calculate the number of rows to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of rows and the available area.

InvalidateScrollableArea ( ) : void

Invalidate the cells

IsInputChar ( char charCode ) : bool

IsInputChar method.

IsInputKey ( Keys keyData ) : bool

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys

OnApplyMouseSelection ( RangeEventArgs e ) : void

Fired when the mouse selection is succesfully finished. See also MouseSelectionRange.

OnEnter ( EventArgs e ) : void
OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void

OnHScrollPositionChanged

OnKeyDown ( KeyEventArgs e ) : void
OnKeyPress ( KeyPressEventArgs e ) : void
OnKeyUp ( KeyEventArgs e ) : void
OnMouseClick ( MouseEventArgs e ) : void
OnMouseDoubleClick ( MouseEventArgs e ) : void
OnMouseDown ( MouseEventArgs e ) : void
OnMouseLeave ( EventArgs e ) : void
OnMouseMove ( MouseEventArgs e ) : void
OnMouseSelectionChange ( EventArgs e ) : void

Fired when the mouse selection change. See also MouseSelectionRange.

OnMouseSelectionFinish ( RangeEventArgs e ) : void

Fired when the selection eith the mouse is finished

OnMouseUp ( MouseEventArgs e ) : void
OnMouseWheel ( MouseEventArgs e ) : void

Fired when a user scroll with the mouse wheel

OnPaint ( PaintEventArgs e ) : void
OnRangePaint ( RangePaintEventArgs e ) : void
OnResize ( EventArgs e ) : void
OnSortedRangeRows ( SortRangeRowsEventArgs e ) : void

Fired after calling SortRangeRows method

OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void

Fired when calling SortRangeRows method

OnUndoMouseSelection ( RangeEventArgs e ) : void

Fired when the mouse selection must be canceled. See also MouseSelectionRange.

OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void

OnVScrollPositionChanged

OnValidated ( EventArgs e ) : void
PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void

Draw the specified Cell

ProcessCmdKey ( Message &msg, Keys keyData ) : bool

Processes a command key.

Приватные методы

Метод Описание
GetVisibleRegion ( ) : IEnumerable

Get the range for the specific area type and rectangle

Get the visible ranges. Returns a list of Range, one for each area.

PerformStretch ( ) : void

Recalculate the scrollbar position and value based on the current cells, scroll client area, linked controls and more. If redraw == false this method has not effect. This method is called when you put Redraw = true;

SetScrollArea ( ) : void

Описание методов

ArrangeLinkedControls() публичный Метод

Refresh the linked controls bounds
public ArrangeLinkedControls ( ) : void
Результат void

AutoSizeCells() публичный Метод

Auto size all the columns and all the rows with the required width and height
public AutoSizeCells ( ) : void
Результат void

AutoSizeCells() публичный Метод

Auto size the columns and the rows speified
public AutoSizeCells ( Range p_RangeToAutoSize ) : void
p_RangeToAutoSize Range
Результат void

ChangeDragCell() публичный Метод

Fired when the cell in the drag events change. For internal use only.
public ChangeDragCell ( CellContext cell, DragEventArgs pDragEventArgs ) : void
cell CellContext
pDragEventArgs System.Windows.Forms.DragEventArgs
Результат void

ChangeMouseCell() публичный Метод

Fired when the cell under the mouse change. For internal use only.
public ChangeMouseCell ( Position p_Cell ) : void
p_Cell Position
Результат void

ChangeMouseDownCell() публичный Метод

Change the cell currently under the mouse
public ChangeMouseDownCell ( Position p_MouseDownCell, Position p_MouseCell ) : void
p_MouseDownCell Position
p_MouseCell Position
Результат void

ChangeMouseSelectionCorner() публичный Метод

Fired when the corner of the mouse selection change. For internal use only.
public ChangeMouseSelectionCorner ( Position p_Corner ) : void
p_Corner Position
Результат void

CheckPositions() публичный Метод

Check if the positions saved are still valid, for example if all the selected cells are still valid positions, if not the selection are removed without calling any other methods.
public CheckPositions ( ) : void
Результат void

ClearValues() публичный Метод

Clear all the selected cells with a valid Model.
public ClearValues ( RangeRegion region ) : void
region RangeRegion
Результат void

CreateColumnsObject() защищенный абстрактный Метод

Abstract method used to create the columns object.
protected abstract CreateColumnsObject ( ) : SourceGrid.ColumnsBase
Результат SourceGrid.ColumnsBase

CreateRowsObject() защищенный абстрактный Метод

Abstract method used to create the rows object.
protected abstract CreateRowsObject ( ) : SourceGrid.RowsBase
Результат SourceGrid.RowsBase

CreateSelectionObject() защищенный Метод

Virtual factory method used to create the SelectionBase derived object. The base method create a different object based on the value of SelectionMode property.
protected CreateSelectionObject ( ) : SelectionBase
Результат SourceGrid.Selection.SelectionBase

Dispose() защищенный Метод

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Результат void

GetCell() публичный Метод

Return the Cell at the specified Row and Col position. This method is called for sort operations and for Move operations. If position is Empty return null. This method calls GetCell(int p_iRow, int p_iCol)
public GetCell ( Position p_Position ) : Cells.ICellVirtual
p_Position Position
Результат Cells.ICellVirtual

GetCell() публичный абстрактный Метод

Return the Cell at the specified Row and Col position. Abstract, must be implemented in the derived class.
public abstract GetCell ( int p_iRow, int p_iCol ) : Cells.ICellVirtual
p_iRow int
p_iCol int
Результат Cells.ICellVirtual

GetCellsAtColumn() публичный Метод

Returns all the cells at specified column position
public GetCellsAtColumn ( int p_ColumnIndex ) : Cells.ICellVirtual[]
p_ColumnIndex int
Результат Cells.ICellVirtual[]

GetCellsAtRow() публичный Метод

Returns all the cells at specified row position
public GetCellsAtRow ( int p_RowIndex ) : Cells.ICellVirtual[]
p_RowIndex int
Результат Cells.ICellVirtual[]

GetFixedLeftArea() публичный Метод

public GetFixedLeftArea ( ) : Rectangle
Результат System.Drawing.Rectangle

GetFixedTopArea() публичный Метод

public GetFixedTopArea ( ) : Rectangle
Результат System.Drawing.Rectangle

GetFixedTopLeftArea() публичный Метод

public GetFixedTopLeftArea ( ) : Rectangle
Результат System.Drawing.Rectangle

GetPositionType() публичный Метод

Returns the type of a cell position
public GetPositionType ( Position position ) : CellPositionType
position Position
Результат CellPositionType

GetScrollColumns() защищенный Метод

Calculate the number of columns to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of columns and the available area.
protected GetScrollColumns ( int displayWidth ) : int
displayWidth int
Результат int

GetScrollPositionToShowCell() защищенный Метод

Indicates if the specified range is visible Return the scroll position that must be set to show a specific cell.
protected GetScrollPositionToShowCell ( Position position, bool partial, Point &newScrollPosition ) : bool
position Position
partial bool True to return also partial visible cells
newScrollPosition Point
Результат bool

GetScrollRows() защищенный Метод

Returns the logical scroll size (usually Rows and Columns) for the specified display area. Returns true if the vertical scrollbar is required Returns true if the horizontal scrollbar is required Calculate the number of rows to scroll. 0 to disable the scrollbar. The returned value is independent from the current scrolling position, must be a fixed value calculated based on the total number of rows and the available area.
protected GetScrollRows ( int displayHeight ) : int
displayHeight int
Результат int

GetScrollableArea() публичный Метод

public GetScrollableArea ( ) : Rectangle
Результат System.Drawing.Rectangle

GetVisibleColumns() публичный Метод

public GetVisibleColumns ( Rectangle displayRectangle, bool returnsPartial ) : List
displayRectangle System.Drawing.Rectangle
returnsPartial bool
Результат List

GetVisibleColumns() публичный Метод

public GetVisibleColumns ( bool returnsPartial ) : List
returnsPartial bool
Результат List

GetVisibleRows() публичный Метод

public GetVisibleRows ( Rectangle displayRectangle, bool returnsPartial ) : List
displayRectangle System.Drawing.Rectangle
returnsPartial bool
Результат List

GetVisibleRows() публичный Метод

public GetVisibleRows ( bool returnsPartial ) : List
returnsPartial bool
Результат List

GridVirtual() публичный Метод

Grid constructor
public GridVirtual ( ) : System
Результат System

InvalidateCell() публичный Метод

Force a cell to redraw.
public InvalidateCell ( Position position ) : void
position Position
Результат void

InvalidateRange() публичный Метод

Force a range of cells to redraw.
public InvalidateRange ( Range range ) : void
range Range
Результат void

InvalidateScrollableArea() защищенный Метод

Invalidate the cells
protected InvalidateScrollableArea ( ) : void
Результат void

IsCellVisible() публичный Метод

Indicates if the specified cell is visible.
public IsCellVisible ( Position position, bool partial ) : bool
position Position
partial bool True to returns also partial visible cells
Результат bool

IsInputChar() защищенный Метод

IsInputChar method.
protected IsInputChar ( char charCode ) : bool
charCode char
Результат bool

IsInputKey() защищенный Метод

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Результат bool

MouseSelectionFinish() публичный Метод

Fired when the mouse selection finish. See also MouseSelectionRange.
public MouseSelectionFinish ( ) : void
Результат void

OnApplyMouseSelection() защищенный Метод

Fired when the mouse selection is succesfully finished. See also MouseSelectionRange.
protected OnApplyMouseSelection ( RangeEventArgs e ) : void
e RangeEventArgs
Результат void

OnCellsAreaChanged() публичный Метод

Force to recalculate scrollbars and panels location. Used usually after changing width and height of the columns / rows, or after adding or removing rows and columns.
public OnCellsAreaChanged ( ) : void
Результат void

OnEnter() защищенный Метод

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Результат void

OnHScrollPositionChanged() защищенный Метод

OnHScrollPositionChanged
protected OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
Результат void

OnKeyDown() защищенный Метод

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

OnKeyPress() защищенный Метод

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
Результат void

OnKeyUp() защищенный Метод

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

OnMouseClick() защищенный Метод

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseDoubleClick() защищенный Метод

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseDown() защищенный Метод

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseLeave() защищенный Метод

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Результат void

OnMouseMove() защищенный Метод

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseSelectionChange() защищенный Метод

Fired when the mouse selection change. See also MouseSelectionRange.
protected OnMouseSelectionChange ( EventArgs e ) : void
e System.EventArgs
Результат void

OnMouseSelectionFinish() защищенный Метод

Fired when the selection eith the mouse is finished
protected OnMouseSelectionFinish ( RangeEventArgs e ) : void
e RangeEventArgs
Результат void

OnMouseUp() защищенный Метод

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnMouseWheel() защищенный Метод

Fired when a user scroll with the mouse wheel
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Результат void

OnPaint() защищенный Метод

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Результат void

OnRangePaint() защищенный Метод

protected OnRangePaint ( RangePaintEventArgs e ) : void
e RangePaintEventArgs
Результат void

OnResize() защищенный Метод

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Результат void

OnSortedRangeRows() защищенный Метод

Fired after calling SortRangeRows method
protected OnSortedRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
Результат void

OnSortingRangeRows() защищенный Метод

Fired when calling SortRangeRows method
protected OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
Результат void

OnUndoMouseSelection() защищенный Метод

Fired when the mouse selection must be canceled. See also MouseSelectionRange.
protected OnUndoMouseSelection ( RangeEventArgs e ) : void
e RangeEventArgs
Результат void

OnUserException() публичный Метод

Event fired when an exception is throw in some method that require a notification to the user. If not handled by the user (Handled property = false) a MessageBox is used to display the exception.
public OnUserException ( ExceptionEventArgs e ) : void
e ExceptionEventArgs
Результат void

OnVScrollPositionChanged() защищенный Метод

OnVScrollPositionChanged
protected OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
Результат void

OnValidated() защищенный Метод

protected OnValidated ( EventArgs e ) : void
e System.EventArgs
Результат void

PaintCell() защищенный Метод

Draw the specified Cell
protected PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void
graphics DevAge
cellContext CellContext
drawRectangle System.Drawing.RectangleF
Результат void

PositionAtPoint() публичный Метод

Returns the cell at the specified grid view relative point (the point must be relative to the grid display region), SearchInFixedCells = true. Return Position.Empty if no valid cells are found.
public PositionAtPoint ( Point point ) : Position
point Point Point relative to the DisplayRectangle area.
Результат Position

PositionToCellRange() публичный Метод

This method converts a Position to the real range of the cell. This is usefull when RowSpan or ColumnSpan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0-0,1 and if you call this method with 0,1 return again 0,0-0,1.
public PositionToCellRange ( Position pPosition ) : Range
pPosition Position
Результат Range

PositionToRectangle() публичный Метод

Get the rectangle of the cell respect to the client area visible, the grid DisplayRectangle. Returns Rectangle.Empty if the Position is empty or if is not valid.
public PositionToRectangle ( Position position ) : Rectangle
position Position
Результат System.Drawing.Rectangle

PositionToStartPosition() публичный Метод

This method converts a Position to the real start position of cell. This is usefull when RowSpan or ColumnSPan is greater than 1. For example suppose to have at grid[0,0] a cell with ColumnSpan equal to 2. If you call this method with the position 0,0 returns 0,0 and if you call this method with 0,1 return again 0,0. Get the real position for the specified position. For example when p_Position is a merged cell this method returns the starting position of the merged cells. Usually this method returns the same cell specified as parameter. This method is used for processing arrow keys, to find a valid cell when the focus is in a merged cell. For this class returns always p_Position.
public PositionToStartPosition ( Position p_Position ) : Position
p_Position Position
Результат Position

ProcessCmdKey() защищенный Метод

Processes a command key.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
Результат bool

ProcessSpecialGridKey() публичный Метод

Process Delete, Ctrl+C, Ctrl+V, Up, Down, Left, Right, Tab keys
public ProcessSpecialGridKey ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Результат void

RangeAtArea() публичный Метод

Get the range of cells at the specified dispaly area. This method consider only the visible cells using the current scroll position. Returns a single Range for the specified grid area (scrollable, fixedtop, fixedleft, fixedtopleft). Returns Range.Empty if there isn't a valid range in the specified area.
public RangeAtArea ( CellPositionType areaType ) : Range
areaType CellPositionType
Результат Range

RangeToRectangle() публичный Метод

Returns the relative rectangle to the current scrollable area of the specified Range. Returns a Rectangle.Empty if the Range is not valid.
public RangeToRectangle ( Range range ) : Rectangle
range Range
Результат System.Drawing.Rectangle

RangeToSize() публичный Метод

public RangeToSize ( Range range ) : Size
range Range
Результат System.Drawing.Size

ScrollOnPoint() публичный Метод

Move the scrollbars to the direction specified by the point specified. Method used by the Mouse multi selection (MouseSelection.cs)
public ScrollOnPoint ( Point mousePoint ) : void
mousePoint Point
Результат void

ShowCell() публичный Метод

Scroll the view to show the cell passed. Ensure that if the cell if invisible or partial visible it will be totally visible
public ShowCell ( Position p_Position, bool ignorePartial ) : bool
p_Position Position
ignorePartial bool true to ignore and consider already visible partial visible cells
Результат bool

SortRangeRows() публичный Метод

Sort a range of the grid
public SortRangeRows ( IRangeLoader p_RangeToSort, int keyColumn, bool p_bAsc, IComparer p_CellComparer ) : void
p_RangeToSort IRangeLoader Range to sort
keyColumn int Index of the column relative to the grid to use as sort keys, must be between start and end col of the range
p_bAsc bool Ascending true, Descending false
p_CellComparer IComparer CellComparer, if null the default comparer will be used
Результат void

SortRangeRows() публичный Метод

Sort a range of the grid.
public SortRangeRows ( Range p_Range, int keyColumn, bool p_bAscending, IComparer p_CellComparer ) : void
p_Range Range
keyColumn int Index of the column relative to the grid to use as sort keys, must be between start and end col
p_bAscending bool Ascending true, Descending false
p_CellComparer IComparer CellComparer, if null the default ValueCellComparer comparer will be used
Результат void

Описание свойств

m_MouseCellPosition защищенное свойство

protected Position,SourceGrid m_MouseCellPosition
Результат Position

m_MouseDownPosition защищенное свойство

Represents the cell that receive the mouse down event
protected Position,SourceGrid m_MouseDownPosition
Результат Position