C# Class SourceGrid.GridVirtual

Inheritance: CustomScrollControl
Afficher le fichier Open project: zhuangyy/Motion Class Usage Examples

Protected Properties

Свойство Type Description
m_MouseCellPosition Position
m_MouseDownPosition Position

Private Properties

Свойство Type Description
GetVisibleRegion IEnumerable
PerformStretch void
SetScrollArea void

Méthodes publiques

Méthode Description
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.

Méthodes protégées

Méthode Description
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.

Private Methods

Méthode Description
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

Method Details

ArrangeLinkedControls() public méthode

Refresh the linked controls bounds
public ArrangeLinkedControls ( ) : void
Résultat void

AutoSizeCells() public méthode

Auto size all the columns and all the rows with the required width and height
public AutoSizeCells ( ) : void
Résultat void

AutoSizeCells() public méthode

Auto size the columns and the rows speified
public AutoSizeCells ( Range p_RangeToAutoSize ) : void
p_RangeToAutoSize Range
Résultat void

ChangeDragCell() public méthode

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
Résultat void

ChangeMouseCell() public méthode

Fired when the cell under the mouse change. For internal use only.
public ChangeMouseCell ( Position p_Cell ) : void
p_Cell Position
Résultat void

ChangeMouseDownCell() public méthode

Change the cell currently under the mouse
public ChangeMouseDownCell ( Position p_MouseDownCell, Position p_MouseCell ) : void
p_MouseDownCell Position
p_MouseCell Position
Résultat void

ChangeMouseSelectionCorner() public méthode

Fired when the corner of the mouse selection change. For internal use only.
public ChangeMouseSelectionCorner ( Position p_Corner ) : void
p_Corner Position
Résultat void

CheckPositions() public méthode

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
Résultat void

ClearValues() public méthode

Clear all the selected cells with a valid Model.
public ClearValues ( RangeRegion region ) : void
region RangeRegion
Résultat void

CreateColumnsObject() protected abstract méthode

Abstract method used to create the columns object.
protected abstract CreateColumnsObject ( ) : SourceGrid.ColumnsBase
Résultat SourceGrid.ColumnsBase

CreateRowsObject() protected abstract méthode

Abstract method used to create the rows object.
protected abstract CreateRowsObject ( ) : SourceGrid.RowsBase
Résultat SourceGrid.RowsBase

CreateSelectionObject() protected méthode

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
Résultat SourceGrid.Selection.SelectionBase

Dispose() protected méthode

Clean up any resources being used.
protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

GetCell() public méthode

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
Résultat Cells.ICellVirtual

GetCell() public abstract méthode

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
Résultat Cells.ICellVirtual

GetCellsAtColumn() public méthode

Returns all the cells at specified column position
public GetCellsAtColumn ( int p_ColumnIndex ) : Cells.ICellVirtual[]
p_ColumnIndex int
Résultat Cells.ICellVirtual[]

GetCellsAtRow() public méthode

Returns all the cells at specified row position
public GetCellsAtRow ( int p_RowIndex ) : Cells.ICellVirtual[]
p_RowIndex int
Résultat Cells.ICellVirtual[]

GetFixedLeftArea() public méthode

public GetFixedLeftArea ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetFixedTopArea() public méthode

public GetFixedTopArea ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetFixedTopLeftArea() public méthode

public GetFixedTopLeftArea ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetPositionType() public méthode

Returns the type of a cell position
public GetPositionType ( Position position ) : CellPositionType
position Position
Résultat CellPositionType

GetScrollColumns() protected méthode

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
Résultat int

GetScrollPositionToShowCell() protected méthode

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
Résultat bool

GetScrollRows() protected méthode

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
Résultat int

GetScrollableArea() public méthode

public GetScrollableArea ( ) : Rectangle
Résultat System.Drawing.Rectangle

GetVisibleColumns() public méthode

public GetVisibleColumns ( Rectangle displayRectangle, bool returnsPartial ) : List
displayRectangle System.Drawing.Rectangle
returnsPartial bool
Résultat List

GetVisibleColumns() public méthode

public GetVisibleColumns ( bool returnsPartial ) : List
returnsPartial bool
Résultat List

GetVisibleRows() public méthode

public GetVisibleRows ( Rectangle displayRectangle, bool returnsPartial ) : List
displayRectangle System.Drawing.Rectangle
returnsPartial bool
Résultat List

GetVisibleRows() public méthode

public GetVisibleRows ( bool returnsPartial ) : List
returnsPartial bool
Résultat List

GridVirtual() public méthode

Grid constructor
public GridVirtual ( ) : System
Résultat System

InvalidateCell() public méthode

Force a cell to redraw.
public InvalidateCell ( Position position ) : void
position Position
Résultat void

InvalidateRange() public méthode

Force a range of cells to redraw.
public InvalidateRange ( Range range ) : void
range Range
Résultat void

InvalidateScrollableArea() protected méthode

Invalidate the cells
protected InvalidateScrollableArea ( ) : void
Résultat void

IsCellVisible() public méthode

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
Résultat bool

IsInputChar() protected méthode

IsInputChar method.
protected IsInputChar ( char charCode ) : bool
charCode char
Résultat bool

IsInputKey() protected méthode

Allow the grid to handle specials keys like Arrows and Tab. See also Grid.SpecialKeys
protected IsInputKey ( Keys keyData ) : bool
keyData Keys
Résultat bool

MouseSelectionFinish() public méthode

Fired when the mouse selection finish. See also MouseSelectionRange.
public MouseSelectionFinish ( ) : void
Résultat void

OnApplyMouseSelection() protected méthode

Fired when the mouse selection is succesfully finished. See also MouseSelectionRange.
protected OnApplyMouseSelection ( RangeEventArgs e ) : void
e RangeEventArgs
Résultat void

OnCellsAreaChanged() public méthode

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
Résultat void

OnEnter() protected méthode

protected OnEnter ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnHScrollPositionChanged() protected méthode

OnHScrollPositionChanged
protected OnHScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
Résultat void

OnKeyDown() protected méthode

protected OnKeyDown ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnKeyPress() protected méthode

protected OnKeyPress ( KeyPressEventArgs e ) : void
e System.Windows.Forms.KeyPressEventArgs
Résultat void

OnKeyUp() protected méthode

protected OnKeyUp ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

OnMouseClick() protected méthode

protected OnMouseClick ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseDoubleClick() protected méthode

protected OnMouseDoubleClick ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseDown() protected méthode

protected OnMouseDown ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseLeave() protected méthode

protected OnMouseLeave ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseMove() protected méthode

protected OnMouseMove ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseSelectionChange() protected méthode

Fired when the mouse selection change. See also MouseSelectionRange.
protected OnMouseSelectionChange ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnMouseSelectionFinish() protected méthode

Fired when the selection eith the mouse is finished
protected OnMouseSelectionFinish ( RangeEventArgs e ) : void
e RangeEventArgs
Résultat void

OnMouseUp() protected méthode

protected OnMouseUp ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnMouseWheel() protected méthode

Fired when a user scroll with the mouse wheel
protected OnMouseWheel ( MouseEventArgs e ) : void
e MouseEventArgs
Résultat void

OnPaint() protected méthode

protected OnPaint ( PaintEventArgs e ) : void
e PaintEventArgs
Résultat void

OnRangePaint() protected méthode

protected OnRangePaint ( RangePaintEventArgs e ) : void
e RangePaintEventArgs
Résultat void

OnResize() protected méthode

protected OnResize ( EventArgs e ) : void
e System.EventArgs
Résultat void

OnSortedRangeRows() protected méthode

Fired after calling SortRangeRows method
protected OnSortedRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
Résultat void

OnSortingRangeRows() protected méthode

Fired when calling SortRangeRows method
protected OnSortingRangeRows ( SortRangeRowsEventArgs e ) : void
e SortRangeRowsEventArgs
Résultat void

OnUndoMouseSelection() protected méthode

Fired when the mouse selection must be canceled. See also MouseSelectionRange.
protected OnUndoMouseSelection ( RangeEventArgs e ) : void
e RangeEventArgs
Résultat void

OnUserException() public méthode

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
Résultat void

OnVScrollPositionChanged() protected méthode

OnVScrollPositionChanged
protected OnVScrollPositionChanged ( ScrollPositionChangedEventArgs e ) : void
e ScrollPositionChangedEventArgs
Résultat void

OnValidated() protected méthode

protected OnValidated ( EventArgs e ) : void
e System.EventArgs
Résultat void

PaintCell() protected méthode

Draw the specified Cell
protected PaintCell ( DevAge graphics, CellContext cellContext, RectangleF drawRectangle ) : void
graphics DevAge
cellContext CellContext
drawRectangle System.Drawing.RectangleF
Résultat void

PositionAtPoint() public méthode

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.
Résultat Position

PositionToCellRange() public méthode

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
Résultat Range

PositionToRectangle() public méthode

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
Résultat System.Drawing.Rectangle

PositionToStartPosition() public méthode

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
Résultat Position

ProcessCmdKey() protected méthode

Processes a command key.
protected ProcessCmdKey ( Message &msg, Keys keyData ) : bool
msg System.Windows.Forms.Message
keyData Keys
Résultat bool

ProcessSpecialGridKey() public méthode

Process Delete, Ctrl+C, Ctrl+V, Up, Down, Left, Right, Tab keys
public ProcessSpecialGridKey ( KeyEventArgs e ) : void
e System.Windows.Forms.KeyEventArgs
Résultat void

RangeAtArea() public méthode

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
Résultat Range

RangeToRectangle() public méthode

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
Résultat System.Drawing.Rectangle

RangeToSize() public méthode

public RangeToSize ( Range range ) : Size
range Range
Résultat System.Drawing.Size

ScrollOnPoint() public méthode

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
Résultat void

ShowCell() public méthode

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
Résultat bool

SortRangeRows() public méthode

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
Résultat void

SortRangeRows() public méthode

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
Résultat void

Property Details

m_MouseCellPosition protected_oe property

protected Position,SourceGrid m_MouseCellPosition
Résultat Position

m_MouseDownPosition protected_oe property

Represents the cell that receive the mouse down event
protected Position,SourceGrid m_MouseDownPosition
Résultat Position