Class RadVirtualGridElement
Represent the main element of RadVirtualGrid.
Inheritance
Inherited Members
Namespace: Telerik.WinControls.UI
Assembly: Telerik.WinControls.GridView.dll
Syntax
public class RadVirtualGridElement : LightVisualElement, INotifyPropertyChanged, ICustomTypeDescriptor, ISupportSystemSkin, IComponent, IDisposable, IBindableComponent, ISupportDrag, ISupportDrop, IShortcutProvider, IStylableElement, IStylableNode, IPrimitiveElement, IShapedElement, IFillElement, IBorderElement, IBoxStyle, IBoxElement, IImageElement, ITextPrimitive, ITextProvider
Constructors
RadVirtualGridElement()
Initializes a new instance of the Rad
Declaration
public RadVirtualGridElement()
Properties
ActiveEditor
Gets the currently active editor when the grid is in edit mode.
Declaration
public IInputEditor ActiveEditor { get; }
Property Value
AllowAddNewRow
Gets or sets a value indicating whether the add new row is visible.
Declaration
public bool AllowAddNewRow { get; set; }
Property Value
System.
|
AllowCellContextMenu
Gets or sets a value indicating whether right-clicking on a data cell will show the default data cell context menu.
Declaration
public bool AllowCellContextMenu { get; set; }
Property Value
System.
|
AllowColumnHeaderContextMenu
Gets or sets a value indicating whether right-clicking on a header cell will show the default header cell context menu.
Declaration
public bool AllowColumnHeaderContextMenu { get; set; }
Property Value
System.
|
AllowColumnResize
Gets or sets a value indicating whether users can resize columns through the grid UI.
Declaration
public bool AllowColumnResize { get; set; }
Property Value
System.
|
AllowCopy
Gets or sets a value indicating whether the Copy option in the context menu and the Ctrl+C shortcut will be available to the user.
Declaration
public bool AllowCopy { get; set; }
Property Value
System.
|
AllowCut
Gets or sets a value indicating whether the Cut option in the context menu and the Ctrl+X shortcut will be available to the user.
Declaration
public bool AllowCut { get; set; }
Property Value
System.
|
AllowDelete
Gets or sets a value indicating whether users can delete rows.
Declaration
public bool AllowDelete { get; set; }
Property Value
System.
|
AllowEdit
Gets or sets a value indicating whether users can edit the values in data cells.
Declaration
public bool AllowEdit { get; set; }
Property Value
System.
|
AllowFiltering
Gets or sets a value indicating whether the filter row is visible.
Declaration
public bool AllowFiltering { get; set; }
Property Value
System.
|
AllowMultiColumnSorting
Gets or sets a value indicating whether the users can sort by more than one column.
Declaration
public bool AllowMultiColumnSorting { get; set; }
Property Value
System.
|
AllowPaste
Gets or sets a value indicating whether the Paste option in the context menu and the Ctrl+V shortcut will be available to the user.
Declaration
public bool AllowPaste { get; set; }
Property Value
System.
|
AllowRowResize
Gets or sets a value indicating whether users can resize rows through the grid UI.
Declaration
public bool AllowRowResize { get; set; }
Property Value
System.
|
AllowSorting
Gets or sets a value indicating whether users can sort columns by clicking the header or through the header context menu.
Declaration
public bool AllowSorting { get; set; }
Property Value
System.
|
BeginEditMode
Gets or sets the method for entering edit mode.
Declaration
public RadVirtualGridBeginEditMode BeginEditMode { get; set; }
Property Value
ColumnCount
Gets or sets the total number of columns to be displayed in the grid.
Declaration
public int ColumnCount { get; set; }
Property Value
System.
|
ContextMenu
Gets or sets the default context menu.
Declaration
public RadDropDownMenu ContextMenu { get; set; }
Property Value
CurrentCell
Gets or sets the current cell.
Declaration
public VirtualGridCellInfo CurrentCell { get; set; }
Property Value
EnableAlternatingRowColor
Gets or sets a value indicating whether event and odd rows will have a different back color.
Declaration
public bool EnableAlternatingRowColor { get; set; }
Property Value
System.
|
EnablePaging
Gets or sets a value indicating whether data is presented in chunks (pages) to the user.
Declaration
public bool EnablePaging { get; set; }
Property Value
System.
|
EnterKeyMode
Gets or sets the behavior of the Enter key when pressed while in edit mode.
Declaration
public RadVirtualGridEnterKeyMode EnterKeyMode { get; set; }
Property Value
FilterDescriptors
Gets the filter descriptors currently applied to the grid.
Declaration
public FilterDescriptorCollection FilterDescriptors { get; }
Property Value
InputBehavior
Gets or sets an instance of Virtual
Declaration
public VirtualGridInputBehavior InputBehavior { get; set; }
Property Value
IsInEditMode
Gets a value indicating whether the grid is in edit mode.
Declaration
public bool IsInEditMode { get; }
Property Value
System.
|
MasterViewInfo
Gets the main Virtual
Declaration
public VirtualGridViewInfo MasterViewInfo { get; }
Property Value
MultiSelect
Gets or sets a value indicating whether multiple cells can be selected simultaneously.
Declaration
public bool MultiSelect { get; set; }
Property Value
System.
|
PageIndex
Gets or sets the index of the page currently presented in the grid.
Declaration
public int PageIndex { get; set; }
Property Value
System.
|
PageSize
Gets or sets the number of rows shown per page when paging is enabled.
Declaration
public int PageSize { get; set; }
Property Value
System.
|
RowCount
Gets or sets the total number of rows to be displayed in the grid.
Declaration
public int RowCount { get; set; }
Property Value
System.
|
Selection
Gets a Virtual
Declaration
public VirtualGridSelection Selection { get; }
Property Value
SelectionMode
Gets or sets a value indicating how cells are selected.
Declaration
public VirtualGridSelectionMode SelectionMode { get; set; }
Property Value
ShowHeaderRow
Gets or sets a value indicating whether the header row is visible.
Declaration
public bool ShowHeaderRow { get; set; }
Property Value
System.
|
ShowNoDataText
Gets or sets a value indicating whether a message should be displayed in the grid when no data is loaded.
Declaration
public bool ShowNoDataText { get; set; }
Property Value
System.
|
SortDescriptors
Gets the sort descriptors currently applied to the grid.
Declaration
public SortDescriptorCollection SortDescriptors { get; }
Property Value
StandardTab
Gets or sets a value indicating whether the TAB key moves the focus to the next control in the tab order rather than moving the focus to the next cell in the control.
Declaration
public bool StandardTab { get; set; }
Property Value
System.
|
TableElement
Gets an instance of Virtual
Declaration
public VirtualGridTableElement TableElement { get; }
Property Value
TotalPages
Gets the total number of pages when paging is enabled.
Declaration
public int TotalPages { get; }
Property Value
System.
|
UseScrollbarsInHierarchy
Gets or sets value indicating whether child views have fixed size [true] or depend on the number of rows they contain [false].
Declaration
public bool UseScrollbarsInHierarchy { get; set; }
Property Value
System.
|
Methods
BeginEdit()
Starts the editing process for the current cell.
Declaration
public bool BeginEdit()
Returns
System.
|
BeginEdit(VirtualGridCellElement)
Starts the editing process for the specified cell.
Declaration
public virtual bool BeginEdit(VirtualGridCellElement currentCell)
Parameters
Virtual The cell to open for editing. |
Returns
System. True if the operation is successful, otherwise false. |
BeginUpdate()
Suspends layout updates.
Declaration
public void BeginUpdate()
BestFitColumn(Int32)
Widens / shrinks the column at the specified index in the specified view info based on the space required by the text in the cells.
Declaration
public void BestFitColumn(int columnIndex)
Parameters
System. The index of the column. |
BestFitColumn(Int32, VirtualGridViewInfo)
Widens / shrinks the column at the specified index in the specified view info based on the space required by the text in the cells.
Declaration
public void BestFitColumn(int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the column. |
Virtual The view info to perform the operation on. |
BestFitColumns()
Widens / shrinks all columns based on the space required by the text in the cells.
Declaration
public void BestFitColumns()
BestFitColumns(VirtualGridViewInfo)
Widens / shrinks all columns in the specified view info based on the space required by the text in the cells.
Declaration
public void BestFitColumns(VirtualGridViewInfo viewInfo)
Parameters
Virtual The view info to perform the operation on. |
CancelEdit()
Ends the editing process without committing any changes. Returns a value indicating whether the operation succeeded.
Declaration
public virtual bool CancelEdit()
Returns
System. Returns true if the operation is successful. Returns false if the operation is not successful e.g. the grid was not in edit mode. |
CanEndEdit()
Returns a value indicating whether the current editor can be closed.
Declaration
public virtual bool CanEndEdit()
Returns
System. True if the editor can be closed, otherwise false. |
CollapseRow(Int32)
Collapses the specified row.
Declaration
public bool CollapseRow(int rowIndex)
Parameters
System. The row index to collapse. |
Returns
System. True if the operation is successful, otherwise false. |
CommitNewRow()
Commits the value in the new row by firing the User
Declaration
public void CommitNewRow()
CopySelection()
Copies the content of the selected cells.
Declaration
public virtual bool CopySelection()
Returns
System. True if the operation was successful, otherwise false. |
CopyToClipboard(Int32, Int32, Int32, Int32, VirtualGridViewInfo)
Copies the content of the specified cell region to the clipboard.
Declaration
public void CopyToClipboard(int startRow, int startColumn, int endRow, int endColumn, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the row where the content copy should start. |
System. The index of the column where the content copy should start. |
System. The index of the row where the content copy should end. |
System. The index of the column where the content copy should end. |
Virtual The view info of the cell region. |
CopyToClipboard(Int32, Int32, Int32, Int32, VirtualGridViewInfo, Boolean, Boolean)
Copies the content of the specified cell region to the clipboard.
Declaration
public void CopyToClipboard(int startRow, int startColumn, int endRow, int endColumn, VirtualGridViewInfo viewInfo, bool selectedOnly, bool cut)
Parameters
System. The index of the row where the content copy should start. |
System. The index of the column where the content copy should start. |
System. The index of the row where the content copy should end. |
System. The index of the column where the content copy should end. |
Virtual The view info of the cell region. |
System. Determines whether only selected cells are copied. |
System. Determines whether cell values should be cleared after the copy. |
CreateChildElements()
Called by the element when constructed. Allows inheritors to build the element tree.
Declaration
protected override void CreateChildElements()
Overrides
CreateTableElement(RadVirtualGridElement, VirtualGridViewInfo)
Creates the table element.
Declaration
protected virtual VirtualGridTableElement CreateTableElement(RadVirtualGridElement virtualGridElement, VirtualGridViewInfo viewInfo)
Parameters
Rad The virtual grid element. |
Virtual The view info. |
Returns
CutSelection()
Cuts the content of the selected cells.
Declaration
public virtual bool CutSelection()
Returns
System. True if the operation was successful, otherwise false. |
DeleteRow(IEnumerable<Int32>, VirtualGridViewInfo)
Deletes the rows specified in the first parameter from the specified view info.
Declaration
public void DeleteRow(IEnumerable<int> rowIndices, VirtualGridViewInfo viewInfo)
Parameters
System. The indices of the rows to delete. |
Virtual The view info from which to delete the rows. |
DeleteSelectedRow()
Deletes the currently selected row.
Declaration
public bool DeleteSelectedRow()
Returns
System. True if the operations is successful, otherwise false. |
DisposeManagedResources()
Disposes the managed resources.
Declaration
protected override void DisposeManagedResources()
Overrides
DpiScaleChanged(SizeF)
Fires when the DPI scale is changed.
Declaration
public override void DpiScaleChanged(SizeF scaleFactor)
Parameters
System. The scale factor. |
Overrides
EndEdit()
Ends the editing process and tries to commit any changes made to the edit value. Returns a value indicating whether the operation succeeded.
Declaration
public virtual bool EndEdit()
Returns
System. Returns true if the operation is successful. Returns false if the operation is not successful e.g. validation fails or the grid was not in edit mode. |
EndUpdate()
Resumes layout updates.
Declaration
public void EndUpdate()
EnsureCellVisible(Int32, Int32)
Ensures the cell defined by the row and column indices is visible in the current view.
Declaration
public void EnsureCellVisible(int rowIndex, int columnIndex)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
EnsureCellVisible(Int32, Int32, VirtualGridTableElement)
Ensures the cell defined by the row and column indices is visible in the current view.
Declaration
public void EnsureCellVisible(int rowIndex, int columnIndex, VirtualGridTableElement tableElement)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The table element of the row. |
EnsureCellVisible(Int32, Int32, VirtualGridViewInfo)
Ensures the cell defined by the row and column indices is visible in the current view.
Declaration
public void EnsureCellVisible(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The view info of the cell. |
EnsureRowVisible(Int32)
Ensures the row at the specified row index is visible in the current view.
Declaration
public void EnsureRowVisible(int rowIndex)
Parameters
System. The index of the row. |
EnsureRowVisible(Int32, VirtualGridTableElement)
Ensures the row at the specified row index is visible in the current view.
Declaration
public void EnsureRowVisible(int rowIndex, VirtualGridTableElement tableElement)
Parameters
System. The index of the row. |
Virtual The table element of the row. |
EnsureRowVisible(Int32, VirtualGridViewInfo)
Ensures the row at the specified row index is visible in the current view.
Declaration
public void EnsureRowVisible(int rowIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the row. |
Virtual The view info of the row. |
ExpandRow(Int32)
Expands the specified row.
Declaration
public bool ExpandRow(int rowIndex)
Parameters
System. The row index to expand. |
Returns
System. True if the operation is successful, otherwise false. |
FindCellElement(Int32, Int32, VirtualGridViewInfo)
Attempts to find a visual cell element that represents the data on the specified row and column indices.
Declaration
public VirtualGridCellElement FindCellElement(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The view info of the cell. |
Returns
Virtual The cell element if it is visible, otherwise null. |
GetCellElement(Int32, Int32, VirtualGridTableElement)
Gets the cell element for the specified row and column indices and view info.
Declaration
public VirtualGridCellElement GetCellElement(int rowIndex, int columnIndex, VirtualGridTableElement tableElement)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The table element of the cell. |
Returns
Virtual The cell element, if found, otherwise false. |
GetCellElement(Int32, Int32, VirtualGridViewInfo)
Gets the cell element for the specified row and column indices and view info.
Declaration
public VirtualGridCellElement GetCellElement(int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The view info of the cell. |
Returns
Virtual The cell element, if found, otherwise false. |
GetColumnScrollOffset(Int32, VirtualGridTableElement)
Gets the scroll offset from the beginning of the columns in the specified view to the left edge of the specified column.
Declaration
public int GetColumnScrollOffset(int columnIndex, VirtualGridTableElement tableElement)
Parameters
System. The index of the column. |
Virtual The table element of the column. |
Returns
System. The distance to the column. |
GetColumnScrollOffset(Int32, VirtualGridViewInfo)
Gets the scroll offset from the beginning of the columns in the specified view to the left edge of the specified column.
Declaration
public int GetColumnScrollOffset(int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the column. |
Virtual The view info of the column. |
Returns
System. The distance to the column. |
GetColumnWidth(Int32)
Gets the height of the column at the given column index.
Declaration
public int GetColumnWidth(int columnIndex)
Parameters
System. The index of the column. |
Returns
System. The height of the column. |
GetDefaultEditor(Object)
Gets an editor based on a cell value. Used when column data types are not defined.
Declaration
protected virtual IInputEditor GetDefaultEditor(object value)
Parameters
System. The value of the cell. |
Returns
IInput The editor to be used for editing the specified value. |
GetEditor(Type)
Gets an editor based on the column data type.
Declaration
protected virtual IInputEditor GetEditor(Type dataType)
Parameters
System. The data type of the column. |
Returns
IInput The editor to be used for editing the specified data type. |
GetRowElement(Int32, VirtualGridTableElement)
Gets the row element for the specified row index and view info.
Declaration
public VirtualGridRowElement GetRowElement(int rowIndex, VirtualGridTableElement tableElement)
Parameters
System. The index of the row. |
Virtual The table element of the row. |
Returns
Virtual The row element displaying the data for the row, if found, otherwise null. |
GetRowElement(Int32, VirtualGridViewInfo)
Gets the row element for the specified row index and view info.
Declaration
public VirtualGridRowElement GetRowElement(int rowIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the row. |
Virtual The view info of the row. |
Returns
Virtual The row element displaying the data for the row, if found, otherwise null. |
GetRowHeight(Int32)
Gets the height of the row at the given row index.
Declaration
public int GetRowHeight(int rowIndex)
Parameters
System. The index of the row. |
Returns
System. The height of the row. |
GetRowScrollOffset(Int32, VirtualGridTableElement)
Gets the scroll offset from the beginning of the rows in the specified view to the top edge of the specified row.
Declaration
public int GetRowScrollOffset(int rowIndex, VirtualGridTableElement tableElement)
Parameters
System. The index of the row. |
Virtual The table element of the row. |
Returns
System. The distance to the row. |
GetRowScrollOffset(Int32, VirtualGridViewInfo)
Gets the scroll offset from the beginning of the rows in the specified view to the top edge of the specified row.
Declaration
public int GetRowScrollOffset(int rowIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the row. |
Virtual The view info of the row. |
Returns
System. The distance to the row. |
GetTableElement(VirtualGridViewInfo)
Gets the table element displaying the info of the specified view info..
Declaration
public VirtualGridTableElement GetTableElement(VirtualGridViewInfo viewInfo)
Parameters
Virtual The view info. |
Returns
Virtual The table element, if found, otherwise null. |
InitializeEditor(IInputEditor, VirtualGridCellElement)
Initializes the editor for editing. Allows settings of the editor to be modified. Fires the Cell
Declaration
protected virtual void InitializeEditor(IInputEditor activeEditor, VirtualGridCellElement cell)
Parameters
IInput The editor that is being initialized. |
Virtual The cell that will be edited. |
IsColumnPinned(Int32)
Returns a value indicating whether the specified column is pinned.
Declaration
public bool IsColumnPinned(int columnIndex)
Parameters
System. The index of the column. |
Returns
System. True if the column is pinned at left or right, otherwise false. |
IsRowExpanded(Int32)
Returns a value indicating whether the specified row is expanded.
Declaration
public bool IsRowExpanded(int rowIndex)
Parameters
System. The index of the row. |
Returns
System. True if the row is expanded, otherwise false. |
IsRowPinned(Int32)
Returns a value indicating whether the specified row is pinned.
Declaration
public bool IsRowPinned(int rowIndex)
Parameters
System. The index of the row. |
Returns
System. True if the row is pinned at top or bottom, otherwise false. |
MoveCurrent(Int32, Int32, Boolean)
Moves the current cell to the one defined by the row and column indices.
Declaration
public bool MoveCurrent(int rowOffset, int columnOffset, bool keepSelection)
Parameters
System. The new current cell row index. |
System. The new current cell column index. |
System. Determines if the current selection should be kept or discarded. |
Returns
System.
|
MoveCurrentDown(Boolean)
Moves the current cell to the one below its current position.
Declaration
public bool MoveCurrentDown(bool keepSelection)
Parameters
System. Determines if the current selection should be kept or discarded. |
Returns
System. True if the operation is successful, otherwise false. |
MoveCurrentLeft(Boolean)
Moves the current cell to the left of its current position.
Declaration
public bool MoveCurrentLeft(bool keepSelection)
Parameters
System. Determines if the current selection should be kept or discarded. |
Returns
System. True if the operation is successful, otherwise false. |
MoveCurrentRight(Boolean)
Moves the current cell to the right of its current position.
Declaration
public bool MoveCurrentRight(bool keepSelection)
Parameters
System. Determines if the current selection should be kept or discarded. |
Returns
System. True if the operation is successful, otherwise false. |
MoveCurrentUp(Boolean)
Moves the current cell to the one above its current position.
Declaration
public bool MoveCurrentUp(bool keepSelection)
Parameters
System. Determines if the current selection should be kept or discarded. |
Returns
System. True if the operation is successful, otherwise false. |
OnCellClick(VirtualGridCellElementEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellClick(VirtualGridCellElementEventArgs args)
Parameters
Virtual The Virtual |
OnCellDoubleClick(VirtualGridCellElementEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellDoubleClick(VirtualGridCellElementEventArgs args)
Parameters
Virtual The Virtual |
OnCellEditorInitialized(VirtualGridCellEditorInitializedEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellEditorInitialized(VirtualGridCellEditorInitializedEventArgs args)
Parameters
Virtual The Virtual |
OnCellFormatting(VirtualGridCellElementEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellFormatting(VirtualGridCellElementEventArgs args)
Parameters
Virtual The Virtual |
OnCellMouseMove(VirtualGridCellElementMouseEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellMouseMove(VirtualGridCellElementMouseEventArgs args)
Parameters
Virtual The Virtual |
OnCellPaint(VirtualGridCellElement, IGraphics)
Raises the Cell
Declaration
protected virtual void OnCellPaint(VirtualGridCellElement cell, IGraphics g)
Parameters
Virtual The cell. |
IGraphics
g
The g. |
OnCellValidating(VirtualGridCellValidatingEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellValidating(VirtualGridCellValidatingEventArgs args)
Parameters
Virtual The Virtual |
OnCellValueNeeded(VirtualGridCellValueNeededEventArgs)
Fires the Cell
Declaration
protected virtual void OnCellValueNeeded(VirtualGridCellValueNeededEventArgs args)
Parameters
Virtual The event arguments. |
OnCellValuePushed(VirtualGridCellValuePushedEventArgs)
Raises the Cell
Declaration
protected virtual void OnCellValuePushed(VirtualGridCellValuePushedEventArgs args)
Parameters
Virtual The Virtual |
OnColumnWidthChanged(VirtualGridColumnEventArgs)
Raises the Column
Declaration
protected virtual void OnColumnWidthChanged(VirtualGridColumnEventArgs args)
Parameters
Virtual The Virtual |
OnColumnWidthChanging(VirtualGridColumnWidthChangingEventArgs)
Raises the Column
Declaration
protected virtual bool OnColumnWidthChanging(VirtualGridColumnWidthChangingEventArgs args)
Parameters
Virtual The Virtual |
Returns
System.
|
OnContextMenuOpening(VirtualGridContextMenuOpeningEventArgs)
Raises the Context
Declaration
protected virtual bool OnContextMenuOpening(VirtualGridContextMenuOpeningEventArgs args)
Parameters
Virtual The Virtual |
Returns
System.
|
OnCopying(VirtualGridClipboardEventArgs)
Raises the Copying event.
Declaration
protected virtual void OnCopying(VirtualGridClipboardEventArgs args)
Parameters
Virtual The Virtual |
OnCreateCellElement(VirtualGridCreateCellEventArgs)
Raises the Create
Declaration
protected virtual void OnCreateCellElement(VirtualGridCreateCellEventArgs e)
Parameters
Virtual The Virtual |
OnCreateRowElement(VirtualGridCreateRowEventArgs)
Raises the Create
Declaration
protected virtual void OnCreateRowElement(VirtualGridCreateRowEventArgs e)
Parameters
Virtual The Virtual |
OnCurrentCellChanged(EventArgs)
Raises the Current
Declaration
protected virtual void OnCurrentCellChanged(EventArgs e)
Parameters
System. The System. |
OnCurrentCellChanging(VirtualGridCellInfo)
Raises the Current
Declaration
protected virtual bool OnCurrentCellChanging(VirtualGridCellInfo cellInfo)
Parameters
Virtual The cell info. |
Returns
System.
|
OnEditorRequired(VirtualGridEditorRequiredEventArgs)
Raises the Editor
Declaration
protected virtual void OnEditorRequired(VirtualGridEditorRequiredEventArgs args)
Parameters
Virtual The Virtual |
OnFilterDescriptorsChanged(VirtualGridViewInfo)
Raises the Filter
Declaration
protected virtual void OnFilterDescriptorsChanged(VirtualGridViewInfo viewInfo)
Parameters
Virtual The view information. |
OnPageIndexChanged(VirtualGridEventArgs)
Raises the Page
Declaration
protected virtual void OnPageIndexChanged(VirtualGridEventArgs args)
Parameters
Virtual The Virtual |
OnPageIndexChanging(VirtualGridPageChangingEventArgs)
Raises the Page
Declaration
protected virtual void OnPageIndexChanging(VirtualGridPageChangingEventArgs args)
Parameters
Virtual The Virtual |
OnPasting(VirtualGridClipboardEventArgs)
Raises the Pasting event.
Declaration
protected virtual void OnPasting(VirtualGridClipboardEventArgs args)
Parameters
Virtual The Virtual |
OnQueryHasChildRows(Int32, VirtualGridViewInfo)
Raises the Query
Declaration
protected virtual bool OnQueryHasChildRows(int rowIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The index of the row. |
Virtual The view info of the row. |
Returns
System.
|
OnRowCollapsed(VirtualGridRowExpandedEventArgs)
Raises the Row
Declaration
protected virtual void OnRowCollapsed(VirtualGridRowExpandedEventArgs args)
Parameters
Virtual The Virtual |
OnRowCollapsing(VirtualGridRowExpandingEventArgs)
Raises the Row
Declaration
protected virtual void OnRowCollapsing(VirtualGridRowExpandingEventArgs args)
Parameters
Virtual The Virtual |
OnRowExpanded(VirtualGridRowExpandedEventArgs)
Raises the Row
Declaration
protected virtual void OnRowExpanded(VirtualGridRowExpandedEventArgs args)
Parameters
Virtual The Virtual |
OnRowExpanding(VirtualGridRowExpandingEventArgs)
Raises the Row
Declaration
protected virtual void OnRowExpanding(VirtualGridRowExpandingEventArgs args)
Parameters
Virtual The Virtual |
OnRowFormatting(VirtualGridRowElementEventArgs)
Fires the Row
Declaration
protected virtual void OnRowFormatting(VirtualGridRowElementEventArgs args)
Parameters
Virtual The Virtual |
OnRowHeightChanged(VirtualGridRowEventArgs)
Raises the Row
Declaration
protected virtual void OnRowHeightChanged(VirtualGridRowEventArgs args)
Parameters
Virtual The Virtual |
OnRowHeightChanging(VirtualGridRowHeightChangingEventArgs)
Raises the Row
Declaration
protected virtual bool OnRowHeightChanging(VirtualGridRowHeightChangingEventArgs args)
Parameters
Virtual The Virtual |
Returns
System.
|
OnRowPaint(VirtualGridRowElement, IGraphics)
Raises the Row
Declaration
protected virtual void OnRowPaint(VirtualGridRowElement row, IGraphics g)
Parameters
Virtual The row. |
IGraphics
g
The g. |
OnRowValidated(VirtualGridRowEventArgs)
Raises the Row
Declaration
protected virtual void OnRowValidated(VirtualGridRowEventArgs e)
Parameters
Virtual The Virtual |
OnRowValidating(VirtualGridRowValidatingEventArgs)
Raises the Row
Declaration
protected virtual void OnRowValidating(VirtualGridRowValidatingEventArgs e)
Parameters
Virtual The Virtual |
OnSelectionChanged(Object, EventArgs)
Raises the Selection
Declaration
protected virtual void OnSelectionChanged(object sender, EventArgs e)
Parameters
System. The sender. |
System. The System. |
OnSelectionChanging(Object, VirtualGridSelectionChangingEventArgs)
Raises the Selection
Declaration
protected virtual void OnSelectionChanging(object sender, VirtualGridSelectionChangingEventArgs e)
Parameters
System. The sender. |
Virtual The Virtual |
OnSortDescriptorsChanged(VirtualGridViewInfo)
Raises the Sort
Declaration
protected virtual void OnSortDescriptorsChanged(VirtualGridViewInfo viewInfo)
Parameters
Virtual The view info. |
OnUserDeletedRow(VirtualGridRowsEventArgs)
Raises the User
Declaration
protected virtual void OnUserDeletedRow(VirtualGridRowsEventArgs e)
Parameters
Virtual The Virtual |
OnValueChanged(Object, EventArgs)
Raises the Value
Declaration
protected virtual void OnValueChanged(object sender, EventArgs e)
Parameters
System. The source of the event. |
System. The System. |
OnValueChanging(Object, ValueChangingEventArgs)
Raises the Value
Declaration
protected virtual void OnValueChanging(object sender, ValueChangingEventArgs e)
Parameters
System. The source of the event. |
Value The Value |
OnViewInfoPropertyChanged(VirtualGridViewInfo, String)
Raises the View
Declaration
protected virtual void OnViewInfoPropertyChanged(VirtualGridViewInfo viewInfo, string propertyName)
Parameters
Virtual The view info. |
System. Name of the property. |
Paste()
Pastes the content of the clipboard into starting from the current cell and going on until either the available cells or the clipboard content ends.
Declaration
public virtual bool Paste()
Returns
System. True if the operation is successful, otherwise false. |
ProcessContent(String, Int32, Int32, Int32, Int32, VirtualGridViewInfo, Boolean, Boolean)
Processes the content of the cells in the specified region and returns a string to be places in the clipboard.
Declaration
protected virtual string ProcessContent(string format, int startRow, int startColumn, int endRow, int endColumn, VirtualGridViewInfo viewInfo, bool selectedOnly, bool cut)
Parameters
System. The format of the data that should be returned. |
System. The index of the row where the content processing should start. |
System. The index of the column where the content processing should start. |
System. The index of the row where the content processing should end. |
System. The index of the column where the content processing should end. |
Virtual The view info of the cell region. |
System. Determines whether only selected cells are processed. |
System. Determines whether cell values should be cleared after they are processed. |
Returns
System.
|
SetCellValue(Object, Int32, Int32, VirtualGridViewInfo)
Sets the value of a given cell to the specified value.
Declaration
public void SetCellValue(object value, int rowIndex, int columnIndex, VirtualGridViewInfo viewInfo)
Parameters
System. The new value for the cell. |
System. The row index of the cell. |
System. The column index of the cell. |
Virtual The view info of the cell. |
SetColumnPinPosition(Int32, PinnedColumnPosition)
Sets the pin position of the specified column.
Declaration
public void SetColumnPinPosition(int columnIndex, PinnedColumnPosition pinPosition)
Parameters
System. The index of the column. |
Pinned The new pin position. |
SetColumnWidth(Int32, Int32)
Sets the width of the column at the specified column index in the master view info.
Declaration
public void SetColumnWidth(int columnIndex, int width)
Parameters
System. The index of the column |
System. The new width of the column. |
SetColumnWidth(Int32, Int32[])
Sets the width of the columns at the specified column indices in the master view info.
Declaration
public void SetColumnWidth(int width, params int[] columnIndices)
Parameters
System. The new width of the columns. |
System. The indices of the columns. |
SetCurrentCell(VirtualGridCellInfo)
Sets the specified cell as the current cell.
Declaration
protected virtual bool SetCurrentCell(VirtualGridCellInfo value)
Parameters
Virtual The cell to mark as current. |
Returns
System. True if the operation is successful, otherwise false. |
SetRowHeight(Int32, Int32)
Sets the height of the row at the specified row index in the master view info.
Declaration
public void SetRowHeight(int rowIndex, int height)
Parameters
System. The index of the row. |
System. The new height of the row. |
SetRowHeight(Int32, Int32[])
Sets the height of the rows at the specified row indices in the master view info.
Declaration
public void SetRowHeight(int height, params int[] rowIndices)
Parameters
System. The new height of the rows. |
System. The indices of the rows. |
SetRowPinPosition(Int32, PinnedRowPosition)
Sets the pin position of the specified row.
Declaration
public void SetRowPinPosition(int rowIndex, PinnedRowPosition pinPosition)
Parameters
System. The index of the row. |
Pinned The new pin position. |
Events
CellClick
Occurs when a cell is clicked.
Declaration
public event VirtualGridCellElementEventHandler CellClick
Event Type
CellDoubleClick
Occurs when a cell is double clicked.
Declaration
public event EventHandler CellDoubleClick
Event Type
System.
|
CellEditorInitialized
Occurs when the editor of a cell is initialized.
Declaration
public event VirtualGridCellEditorInitializedEventHandler CellEditorInitialized
Event Type
CellFormatting
Occurs when a cell is updated and needs formatting.
Declaration
public event VirtualGridCellElementEventHandler CellFormatting
Event Type
CellMouseMove
Occurs when the mouse is moved over a cell.
Declaration
public event VirtualGridCellElementMouseEventHandler CellMouseMove
Event Type
CellPaint
Occurs after a cell is painted allowing users to draw on top of it.
Declaration
public event VirtualGridCellPaintEventHandler CellPaint
Event Type
CellValidating
Occurs before a cell is validated.
Declaration
public event VirtualGridCellValidatingEventHandler CellValidating
Event Type
CellValueNeeded
Occurs when a cell is displayed and its content should be updated.
Declaration
public event VirtualGridCellValueNeededEventHandler CellValueNeeded
Event Type
CellValuePushed
Occurs when a cell value is edited and should be stored in the data source.
Declaration
public event VirtualGridCellValuePushedEventHandler CellValuePushed
Event Type
ColumnWidthChanged
Occurs after the width of a column changes.
Declaration
public event VirtualGridColumnEventHandler ColumnWidthChanged
Event Type
ColumnWidthChanging
Occurs before the width of a column changes.
Declaration
public event VirtualGridColumnWidthChangingEventHandler ColumnWidthChanging
Event Type
ContextMenuOpening
Occurs when the context menu is about to be opened.
Declaration
public event VirtualGridContextMenuOpeningEventHandler ContextMenuOpening
Event Type
Copying
Occurs when the content of cell(s) is copied. Allows users to modify the operation or content.
Declaration
public event VirtualGridClipboardEventHandler Copying
Event Type
CreateCellElement
Occurs when a new cell element has to be created.
Declaration
public event VirtualGridCreateCellEventHandler CreateCellElement
Event Type
CreateRowElement
Occurs when a new row element has to be created.
Declaration
public event VirtualGridCreateRowEventHandler CreateRowElement
Event Type
CurrentCellChanged
Occurs after the current cell changes.
Declaration
public event EventHandler CurrentCellChanged
Event Type
System.
|
CurrentCellChanging
Occurs before the current cell changes.
Declaration
public event VirtualGridCellInfoCancelEventHandler CurrentCellChanging
Event Type
EditorRequired
Occurs when an editor for a cell is required.
Declaration
public event VirtualGridEditorRequiredEventHandler EditorRequired
Event Type
FilterDescriptorsChanged
Occurs when the filter descriptors collection changes.
Declaration
public event VirtualGridEventHandler FilterDescriptorsChanged
Event Type
PageIndexChanged
Occurs after the current page index changes.
Declaration
public event VirtualGridEventHandler PageIndexChanged
Event Type
PageIndexChanging
Occurs before the current page index changes.
Declaration
public event VirtualGridPageChangingEventHandler PageIndexChanging
Event Type
Pasting
Occurs when the content of cell(s) is about to be pasted. Allows users to modify the operation or content.
Declaration
public event VirtualGridClipboardEventHandler Pasting
Event Type
QueryHasChildRows
Occurs when a row has to determine if it has child rows.
Declaration
public event VirtualGridQueryHasChildRowsEventHandler QueryHasChildRows
Event Type
RowCollapsed
Occurs after a row is collapsed.
Declaration
public event VirtualGridRowExpandedEventHandler RowCollapsed
Event Type
RowCollapsing
Occurs before a row is collapsed.
Declaration
public event VirtualGridRowExpandingEventHandler RowCollapsing
Event Type
RowExpanded
Occurs after a row is expanded.
Declaration
public event VirtualGridRowExpandedEventHandler RowExpanded
Event Type
RowExpanding
Occurs before a row is expanded.
Declaration
public event VirtualGridRowExpandingEventHandler RowExpanding
Event Type
RowFormatting
Occurs when a row is updated and needs formatting.
Declaration
public event VirtualGridRowElementEventHandler RowFormatting
Event Type
RowHeightChanged
Occurs after a row height changes.
Declaration
public event VirtualGridRowEventHandler RowHeightChanged
Event Type
RowHeightChanging
Occurs before a row height changes.
Declaration
public event VirtualGridRowHeightChangingEventHandler RowHeightChanging
Event Type
RowPaint
Occurs after a row is painted allowing users to draw on top of it.
Declaration
public event VirtualGridRowPaintEventHandler RowPaint
Event Type
RowValidated
Occurs after a row is validated.
Declaration
public event VirtualGridRowEventHandler RowValidated
Event Type
RowValidating
Occurs before a row is validated.
Declaration
public event VirtualGridRowValidatingEventHandler RowValidating
Event Type
SelectionChanged
Occurs after the selection changes.
Declaration
public event EventHandler SelectionChanged
Event Type
System.
|
SelectionChanging
Occurs before the selection changes.
Declaration
public event VirtualGridSelectionChangingEventHandler SelectionChanging
Event Type
SortDescriptorsChanged
Occurs when the sort descriptors collection changes.
Declaration
public event VirtualGridEventHandler SortDescriptorsChanged
Event Type
UserAddedRow
Occurs when a user adds a row.
Declaration
public event VirtualGridNewRowEventHandler UserAddedRow
Event Type
UserDeletedRow
Occurs when a user deletes a row.
Declaration
public event VirtualGridRowsEventHandler UserDeletedRow
Event Type
ValueChanged
Occurs after the value of a cell has been changed.
Declaration
public event EventHandler ValueChanged
Event Type
System.
|
ValueChanging
Occurs before the value of a cell is changed.
Declaration
public event ValueChangingEventHandler ValueChanging
Event Type
ViewInfoPropertyChanged
Occurs when a property of the view info changes.
Declaration
public event VirtualGridViewInfoPropertyChangedEventHandler ViewInfoPropertyChanged