ClassRadGridView
RadGridView is a complex data visualization control that displays and enables editing of tabular data from various data sources. It provides rich functionality including hierarchical data representation, sorting, filtering, grouping, data validation, and custom cell editing.
Definition
Namespace:Telerik.WinControls.UI
Assembly:Telerik.WinControls.GridView.dll
Syntax:
[TelerikToolboxCategory("Data Controls")]
[ComplexBindingProperties("DataSource", "DataMember")]
public class RadGridView : RadControl, IDropTarget, ISynchronizeInvoke, IWin32Window, IBindableComponent, IComponent, IDisposable, INotifyPropertyChanged, ISupportInitializeNotification, ISupportInitialize, IComponentTreeHandler, ILayoutHandler, IAnalyticsProvider, IPrintable, IFilterable, ISupportRootUIAutomation
Inheritance: objectMarshalByRefObjectComponentControlScrollableControlRadControlRadGridView
Implements:
Inherited Members
Constructors
RadGridView()
Initializes a new instance of the RadGridView class. Creates a new grid view control with default settings and initializes the print style.
Declaration
public RadGridView()
Properties
ActiveEditor
Gets the active editor
Declaration
[Browsable(false)]
public IInputEditor ActiveEditor { get; }
Property Value
AddNewRowPosition
Gets or sets a value indicating the location of the new row in the view template.
Declaration
[Browsable(true)]
public SystemRowPosition AddNewRowPosition { get; set; }
Property Value
AllowAddNewRow
Gets or sets a value indicating whether the user can add new rows through the grid.
Declaration
[Browsable(true)]
public bool AllowAddNewRow { get; set; }
Property Value
Remarks
When set to true an empty row is added in which the user can enter data for the new record.
Set to false to hide the row.
The row position is controlled through AddNewRowPosition
AllowAutoSizeColumns
Gets or sets a value indicating whether user can automatically resize a column to fit its content by double-clicking the right border of header cell.
Declaration
[Browsable(false)]
public bool AllowAutoSizeColumns { get; set; }
Property Value
AllowCellContextMenu
Gets or sets a value indicating whether context menu is displayed when user right clicks on a data cell.
Declaration
[Browsable(true)]
public bool AllowCellContextMenu { get; set; }
Property Value
AllowColumnChooser
Gets or sets a value indicating whether GridViewColumnChooser is available to the user for this instance of GridViewTemplate.
Declaration
[Browsable(true)]
public bool AllowColumnChooser { get; set; }
Property Value
AllowColumnHeaderContextMenu
Gets or sets a value indicating whether context menu is displayed when user right clicks on a column header.
Declaration
[Browsable(true)]
public bool AllowColumnHeaderContextMenu { get; set; }
Property Value
AllowColumnReorder
Gets or sets a value indicating whether user can reorder Columns.
Declaration
[Browsable(true)]
public bool AllowColumnReorder { get; set; }
Property Value
AllowColumnResize
Gets or sets a value indicating whether user can resize columns.
AllowDeleteRow
Gets or sets a value indicating whether user can delete rows.
Declaration
[Browsable(true)]
public bool AllowDeleteRow { get; set; }
Property Value
AllowDragToGroup
Gets or sets a value indicating whether user can drag a column header to grouping panel.
Declaration
[Browsable(true)]
public bool AllowDragToGroup { get; set; }
Property Value
AllowEditRow
Gets or sets a value indicating whether user can edit rows.
Declaration
[Browsable(true)]
public bool AllowEditRow { get; set; }
Property Value
AllowMultiColumnSorting
Gets or sets a value indicating whether the end-user can sort by more than one column.
Declaration
[Browsable(false)]
public bool AllowMultiColumnSorting { get; set; }
Property Value
AllowRowHeaderContextMenu
Gets or sets a value indicating whether context menu is displayed when user right clicks on a row header.
Declaration
[Browsable(true)]
public bool AllowRowHeaderContextMenu { get; set; }
Property Value
AllowRowReorder
Gets or sets a value indicating whether the user is able to reorder rows in the grid
Declaration
[Browsable(true)]
public bool AllowRowReorder { get; set; }
Property Value
AllowRowResize
Gets or sets a value indicating whether user can resize a row.
AllowSearchRow
Gets or sets a value indicating whether the user can search through the data of the grid.
Declaration
[Browsable(true)]
public bool AllowSearchRow { get; set; }
Property Value
Remarks
When set to true a search row is added in which the user can enter search criteria.
Set to false to hide the row.
The row position is controlled through SearchRowPosition
AutoExpandGroups
Sets or gets a value indicating the initial state of group rows when data is grouped.
Declaration
[Browsable(true)]
public bool AutoExpandGroups { get; set; }
Property Value
AutoGenerateColumns
Gets or sets a value indicating whether columns are created automatically when the or properties are set.
Declaration
[Browsable(true)]
public bool AutoGenerateColumns { get; set; }
Property Value
true if the columns should be created automatically; otherwise, false. The default is true.
AutoGenerateHierarchy
Gets or sets a value indicating whether the RadGridView will automatically build hierarchy from DataSource.
Declaration
[Browsable(true)]
public bool AutoGenerateHierarchy { get; set; }
Property Value
AutoSize
Gets or sets a value indicating whether the control is automatically resized to display its entire contents.
Declaration
[Browsable(true)]
public override bool AutoSize { get; set; }
Property Value
Overrides
AutoSizeColumnsMode
Gets or sets a value indicating how column widths are determined.
Declaration
[Browsable(true)]
public GridViewAutoSizeColumnsMode AutoSizeColumnsMode { get; set; }
Property Value
AutoSizeRows
Gets or sets a value indicating whether row height in a RataGridView will expand for multiline cell text
Declaration
[Browsable(true)]
public bool AutoSizeRows { get; set; }
Property Value
BeginEditMode
Gets or sets value indicating how user begins editing a cell.
Declaration
[Browsable(true)]
public RadGridViewBeginEditMode BeginEditMode { get; set; }
Property Value
BottomPinnedRowsMode
Gets or sets a value indicating how bottom pinned rows are laid out.
Declaration
[Browsable(true)]
public GridViewBottomPinnedRowsMode BottomPinnedRowsMode { get; set; }
Property Value
CaseSensitive
Indicates whether string comparisons of data are case-sensitive.
Declaration
[Browsable(true)]
public bool CaseSensitive { get; set; }
Property Value
ChildRows
Gets the child rows.
Declaration
[Browsable(false)]
public GridViewChildRowCollection ChildRows { get; }
Property Value
The child rows.
ChildViewTabsPosition
Gets or sets the position to place tabs for child views related with this template.
Declaration
[Browsable(true)]
public TabPositions ChildViewTabsPosition { get; set; }
Property Value
ClipboardCopyMode
Gets or sets a value that indicates whether users can copy cell text values to the System.Windows.Forms.Clipboard and whether row and column header text is included.
Declaration
[Browsable(true)]
public GridViewClipboardCopyMode ClipboardCopyMode { get; set; }
Property Value
ClipboardCutMode
Gets or sets a value that indicates whether users can cut cell text values to the System.Windows.Forms.Clipboard and whether row and column header text is included.
Declaration
[Browsable(true)]
public GridViewClipboardCutMode ClipboardCutMode { get; set; }
Property Value
ClipboardPasteMode
Gets or sets a value that indicates whether users can paste Clipboard values to the RadGridView control.
Declaration
[Browsable(true)]
public GridViewClipboardPasteMode ClipboardPasteMode { get; set; }
Property Value
CloseEditorWhenValidationFails
Gets or sets a value indicating whether the active editor should be closed when validation process fails.
Declaration
[Browsable(true)]
public bool CloseEditorWhenValidationFails { get; set; }
Property Value
ColumnChooser
Gets the current column chooser
Declaration
[Browsable(false)]
public GridViewColumnChooser ColumnChooser { get; }
Property Value
ColumnChooserSortOrder
Gets or sets the column chooser sort order.
Declaration
[Browsable(true)]
public RadSortOrder ColumnChooserSortOrder { get; set; }
Property Value
The column chooser sort order.
ColumnCount
Gets or sets the number of columns displayed.
Declaration
[Browsable(false)]
public int ColumnCount { get; set; }
Property Value
Columns
Gets the columns.
Declaration
public GridViewColumnCollection Columns { get; }
Property Value
The columns.
ContextMenuManager
Gets an instance of GridViewContextMenuManager or the instance that implements IContextMenuManager interface.
Declaration
[Browsable(false)]
public virtual IContextMenuManager ContextMenuManager { get; }
Property Value
CurrentCell
Gets the currently active cell in the grid.
Declaration
[Browsable(false)]
public GridDataCellElement CurrentCell { get; }
Property Value
CurrentCellAddress
Gets the row and column indexes of the currently active cell.
Declaration
[Browsable(false)]
public Point CurrentCellAddress { get; }
Property Value
CurrentColumn
Gets or sets the current column of the currently active view containing the current cell.
Declaration
[Browsable(false)]
public GridViewColumn CurrentColumn { get; set; }
Property Value
CurrentRow
Gets or sets the current row of the currently active view containing the current cell.
Declaration
[Browsable(false)]
public GridViewRowInfo CurrentRow { get; set; }
Property Value
CurrentView
Gets the currently active view in the RadGridView
Declaration
[Browsable(false)]
public IRowView CurrentView { get; set; }
Property Value
DataMember
Gets or sets the name of the list or table in the data source for which the GridViewTemplate is displaying data.
Declaration
[Browsable(true)]
public string DataMember { get; set; }
Property Value
DataSource
Gets or sets the data source that the RadGridView is displaying data for. This property can be set to various data sources including DataTable, DataSet, IList, or any object that implements IListSource or IEnumerable.
Declaration
[Browsable(true)]
public object DataSource { get; set; }
Property Value
Implements
DefaultSize
Gets the default size of the control.
EditorManager
Gets an instance of GridViewEditManager that defines how to initialize and create cells and editors.
Declaration
[Browsable(false)]
public GridViewEditManager EditorManager { get; }
Property Value
EnableAlternatingRowColor
Gets or sets a value indicating whether alternating row color is enabled.
Declaration
[Browsable(true)]
public virtual bool EnableAlternatingRowColor { get; set; }
Property Value
EnableCustomDrawing
Gets or sets a value specifying if the custom drawing (e.g. CellPaint and RowPaint) is enabled
Declaration
[Browsable(true)]
public bool EnableCustomDrawing { get; set; }
Property Value
EnableCustomFiltering
Gets or sets a value indicating whether the custom filtering functionality should be enabled. Use the CustomFiltering event to apply the desired filters.
Declaration
[Browsable(true)]
public bool EnableCustomFiltering { get; set; }
Property Value
EnableCustomGrouping
Gets or sets a value indicating whether the custom grouping functionality should be enabled. Use the CustomGrouping event to group the data.
Declaration
[Browsable(true)]
public bool EnableCustomGrouping { get; set; }
Property Value
EnableCustomSorting
Gets or sets a value indicating whether the custom sorting functionality should be enabled. Use the CustomSorting event to apply the desired sorting.
Declaration
[Browsable(true)]
public bool EnableCustomSorting { get; set; }
Property Value
EnableFastScrolling
Gets or sets value indicating if fast scrolling mode is turned on.
Declaration
[Browsable(true)]
public bool EnableFastScrolling { get; set; }
Property Value
EnableFiltering
Gets or sets value indicating whether users can filter data in the master view template.
Declaration
[Browsable(true)]
public bool EnableFiltering { get; set; }
Property Value
EnableGrouping
Gets or sets value indicating whether users can group data in the master view template.
Declaration
[Browsable(true)]
public bool EnableGrouping { get; set; }
Property Value
EnableHotTracking
Gets or sets value indicating whether hot tracking is enabled.
Declaration
[Browsable(true)]
public bool EnableHotTracking { get; set; }
Property Value
EnableKineticScrolling
Gets or sets a value indicating whether the kinetic scrolling function is enabled.
Declaration
[Browsable(true)]
public bool EnableKineticScrolling { get; set; }
Property Value
EnablePaging
Gets or sets value indicating whether users can paginate data in the master view template.
Declaration
[Browsable(true)]
public bool EnablePaging { get; set; }
Property Value
EnableSorting
Gets or sets value indicating whether users can sort data in master view template.
Declaration
[Browsable(true)]
public bool EnableSorting { get; set; }
Property Value
EnableUIAutomation
Gets or sets a value indicating whether the UI Automation functionality is enabled or disabled for this control.
Declaration
public override bool EnableUIAutomation { get; set; }
Property Value
Overrides
Implements
EnterKeyMode
Gets or sets value indicating the behavior when the user presses Enter.
Declaration
[Browsable(true)]
public RadGridViewEnterKeyMode EnterKeyMode { get; set; }
Property Value
FilterDescriptors
Gets the filter descriptors of master template.
Declaration
[Browsable(true)]
public FilterDescriptorCollection FilterDescriptors { get; }
Property Value
The filter descriptors of master template.
Implements
GridBehavior
Gets or sets an instance of BaseGridBehavior or the instance that implements IGridBehavior interface.
Declaration
[Browsable(false)]
public virtual IGridBehavior GridBehavior { get; set; }
Property Value
GridNavigator
Gets an instance of BaseGridNavigator or the instance that implements IGridNavigator interface.
Declaration
[Browsable(false)]
public virtual IGridNavigator GridNavigator { get; }
Property Value
GridViewElement
Gets the instance of GridVisualElement. This instance is wrapped by this control and the main element in the hierarchy tree and encapsulates the actual functionality of RadGridView.
Declaration
[Browsable(false)]
public RadGridViewElement GridViewElement { get; }
Property Value
GroupDescriptors
Gets the group descriptors of master template.
Declaration
[Browsable(true)]
public GroupDescriptorCollection GroupDescriptors { get; }
Property Value
The group descriptors of master template.
GroupExpandAnimationType
Gets or set a value indicating the animation effect that will be used when expanding/collapsing groups.
Declaration
[Browsable(true)]
public GridExpandAnimationType GroupExpandAnimationType { get; set; }
Property Value
Groups
Gets a collection that contains the all groups in the MasterTemplate.
Declaration
[Browsable(false)]
public DataGroupCollection Groups { get; }
Property Value
HideSelection
Gets or sets a value indicating whether the selected item in the control remains highlighted when the control loses focus.
Returns: true if the selected item does not appear highlighted when the control loses focus; false if the selected item still appears highlighted when the control loses focus. The default is true.
Declaration
[Browsable(true)]
public bool HideSelection { get; set; }
Property Value
HorizontalScrollState
Gets or sets the display state of grid horizontal scrollbars.
Declaration
[Browsable(true)]
public ScrollState HorizontalScrollState { get; set; }
Property Value
IsDisposing
Gets whether the grid is disposing.
Declaration
protected virtual bool IsDisposing { get; }
Property Value
The is disposing.
IsInEditMode
Gets a value indicating whether the cell is in edit mode.
Declaration
[Browsable(false)]
public bool IsInEditMode { get; }
Property Value
MasterTemplate
Gets the MasterGridViewTemplate representing the top-most level of the hierarchical data in the grid. The MasterTemplate provides access to columns, rows, and all data operations for the main grid view.
Declaration
[Browsable(false)]
public MasterGridViewTemplate MasterTemplate { get; }
Property Value
MasterView
Gets the top-most GridViewInfo level of the grid.
Declaration
[Browsable(false)]
public GridViewInfo MasterView { get; }
Property Value
MergeCellsEditMode
Gets or sets a value indicating how the merged cells will be edited.
Declaration
[Browsable(true)]
public MergeCellsEditMode MergeCellsEditMode { get; set; }
Property Value
MergeCellsMode
Indicates whether and how the cells will be merged.
Declaration
[Browsable(true)]
public MergeCellsMode MergeCellsMode { get; set; }
Property Value
MultiSelect
Gets or sets a value indicating whether the user is allowed to select more than one cell, row, or column of the RadGridView at a time.
Declaration
[Browsable(true)]
public bool MultiSelect { get; set; }
Property Value
NewRowEnterKeyMode
Gets or sets value indicating the behavior when the user presses Enter while adding new row.
Declaration
[Browsable(true)]
public RadGridViewNewRowEnterKeyMode NewRowEnterKeyMode { get; set; }
Property Value
PageSize
Gets or sets value indicating the number of rows in the master view template when paging is enabled.
Declaration
[Browsable(true)]
public int PageSize { get; set; }
Property Value
PrintSettingsDialogFactory
Gets or sets the print settings dialog factory.
Declaration
[Browsable(false)]
public IPrintSettingsDialogFactory PrintSettingsDialogFactory { get; set; }
Property Value
The print settings dialog factory.
PrintStyle
Gets or sets a value indicating how the RadGridView is printed.
Declaration
[Browsable(true)]
public GridPrintStyle PrintStyle { get; set; }
Property Value
ReadOnly
Gets or sets a value indicating whether the user can edit the cells of the RadGridView control.
Declaration
[Browsable(true)]
public bool ReadOnly { get; set; }
Property Value
Relations
Gets collection of GridViewRelation instances that represent the hierarchical structure.
Declaration
[Browsable(true)]
public GridViewRelationCollection Relations { get; }
Property Value
RowCount
Gets or sets the number of rows contained in the current GridViewTemplate.
Declaration
[Browsable(false)]
public int RowCount { get; set; }
Property Value
Rows
Gets a collection that contains the all rows in the MasterTemplate.
Declaration
[Browsable(false)]
public GridViewRowCollection Rows { get; }
Property Value
SearchRowPosition
Gets or sets a value indicating the location of the search row.
Declaration
[Browsable(true)]
public SystemRowPosition SearchRowPosition { get; set; }
Property Value
SelectedCells
Gets the collection of cells selected by the user.
Declaration
[Browsable(false)]
public GridViewSelectedCellsCollection SelectedCells { get; }
Property Value
SelectedRows
Gets the collection of rows selected by the user.
Declaration
[Browsable(false)]
public GridViewSelectedRowsCollection SelectedRows { get; }
Property Value
SelectionMode
Gets or sets a value indicating how the cells of the RadGridView can be selected.
Declaration
[Browsable(true)]
public GridViewSelectionMode SelectionMode { get; set; }
Property Value
ShowCellErrors
Gets or sets a value indicating whether to show cell errors.
Declaration
[Browsable(true)]
public bool ShowCellErrors { get; set; }
Property Value
ShowChildViewCaptions
Gets or sets a value indicating whether to show child view captions.
Declaration
[Browsable(true)]
public bool ShowChildViewCaptions { get; set; }
Property Value
ShowCollapsedGroupSummaries
Indicates whether summary rows of collapsed groups will be visible. If true the summary rows will not be hidden when the group is collapsed. Note that the GridViewGroupRowInfo has the same property and it has higher priority. If you need different behavior for different groups/group levels, you can use the CreateRowInfo event and set the ShowCollapsedGroupSummaries of each group individually.
Declaration
[Browsable(true)]
public bool ShowCollapsedGroupSummaries { get; set; }
Property Value
ShowColumnHeaders
Gets or sets a value indicating whether the column headers are visible.
Declaration
[Browsable(true)]
public bool ShowColumnHeaders { get; set; }
Property Value
ShowFilteringRow
Gets or sets a value indicating whether the filtering row should be visible.
Declaration
[Browsable(true)]
public bool ShowFilteringRow { get; set; }
Property Value
ShowGroupPanel
Gets or sets value indicating whether the GridGroupPanel is visible.
Declaration
[Browsable(true)]
public bool ShowGroupPanel { get; set; }
Property Value
ShowGroupPanelScrollbars
Gets or sets a value indicating whether the group panel will show scroll bars or it will expand to show all group headers.
Declaration
[Browsable(true)]
public bool ShowGroupPanelScrollbars { get; set; }
Property Value
ShowGroupedColumns
Gets or sets a value indicating whether the columns by which the data is grouped are visible.
Declaration
[Browsable(true)]
public bool ShowGroupedColumns { get; set; }
Property Value
Remarks
Set to false, and each column contained in the GroupDescriptors, will get hidden. Set to true to see all columns. If some column is still not visible, check IsVisible.
ShowHeaderCellButtons
Gets or sets a value indicating whether the header cell buttons are visible.
Declaration
[Browsable(true)]
public bool ShowHeaderCellButtons { get; set; }
Property Value
ShowNoDataText
Gets or sets the text to use when there is no data.
Declaration
[Browsable(true)]
public bool ShowNoDataText { get; set; }
Property Value
ShowRowErrors
Gets or sets a value indicating whether to show row errors.
Declaration
[Browsable(true)]
public bool ShowRowErrors { get; set; }
Property Value
ShowRowHeaderColumn
Gets or sets a value indicating whether the row header column is visible.
Declaration
[Browsable(true)]
public bool ShowRowHeaderColumn { get; set; }
Property Value
ShowSelectColumn
Gets or sets a value indicating whether the select column is visible. The select column in only supported for the GridViewSelectionMode.FullRowSelect.
Declaration
[Browsable(true)]
public bool ShowSelectColumn { get; set; }
Property Value
SortDescriptors
Gets the sort descriptors of master template.
Declaration
[Browsable(true)]
public SortDescriptorCollection SortDescriptors { get; }
Property Value
The sort descriptors.
SplitMode
Gets or sets a value indicating how to split RadGridView.
Declaration
[Browsable(true)]
public RadGridViewSplitMode SplitMode { get; set; }
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 focus to the next cell in the control.
Declaration
[Browsable(true)]
public bool StandardTab { get; set; }
Property Value
SummaryRowsBottom
Gets the collection containing summary rows placed at the bottom of each DataGroup.
Declaration
[Browsable(true)]
public GridViewSummaryRowItemCollection SummaryRowsBottom { get; }
Property Value
SummaryRowsTop
Gets the collection containing summary rows placed on top of each DataGroup.
Declaration
[Browsable(true)]
public GridViewSummaryRowItemCollection SummaryRowsTop { get; }
Property Value
SynchronizeCurrentRowInSplitMode
Gets or sets whether when changing the current row in one split view the same row in the other split view will be brought into view.
Declaration
[Browsable(true)]
public bool SynchronizeCurrentRowInSplitMode { get; set; }
Property Value
TableElement
Gets the instance of GridTableElement
Declaration
[Browsable(false)]
public GridTableElement TableElement { get; }
Property Value
Templates
Gets the child templates of master template.
Declaration
[Browsable(true)]
public GridViewTemplateCollection Templates { get; }
Property Value
The child templates of master template.
TitlePosition
Gets or sets a value indicating the position of the title.
Declaration
[Browsable(true)]
public Dock TitlePosition { get; set; }
Property Value
TitleText
Gets or set the text of the grid title.
Declaration
[Browsable(true)]
public string TitleText { get; set; }
Property Value
UseScrollbarsInHierarchy
Gets or sets a value indicating whether to use dedicated vertical scrollbars in hierarchy.
Declaration
[Browsable(true)]
public bool UseScrollbarsInHierarchy { get; set; }
Property Value
VerticalScrollState
Gets or sets the display state of grid vertical scrollbars.
Declaration
[Browsable(true)]
public ScrollState VerticalScrollState { get; set; }
Property Value
ViewDefinition
Gets or sets the IGridViewDefinition associated with the MasterTemplate.
Declaration
[Browsable(false)]
public IGridViewDefinition ViewDefinition { get; set; }
Property Value
VirtualMode
Gets or sets a value indicating whether you have provided your own data-management operations for the RadGridView control.
Declaration
[Browsable(true)]
public bool VirtualMode { get; set; }
Property Value
The virtual mode.
XmlSerializationInfo
Gets the serialization info for RadGridView used by Save/Load layout methods to persist grid settings to/from XML. By default, or when set to null the ComponentXmlSerializationInfo provided by GetDefaultXmlSerializationInfo() will be used.
Declaration
[Browsable(false)]
public ComponentXmlSerializationInfo XmlSerializationInfo { get; set; }
Property Value
Methods
BeginEdit()
Puts the current cell in edit mode.
Declaration
public virtual bool BeginEdit()
Returns
Returns true if the process is successful.
BeginInit()
Suspends layout during initialization.
Declaration
public override void BeginInit()
Overrides
BeginUpdate()
Suspends the drawing and layout logic of the grid. Call this method before performing multiple operations on the grid to improve performance, and call EndUpdate() when finished.
Declaration
public void BeginUpdate()
BestFitColumns()
Widens / shrinks all columns based on the space required by the text in the columns.
Declaration
public void BestFitColumns()
BestFitColumns(BestFitColumnMode)
Widens / shrinks all columns based on the space required by the text in the columns.
Declaration
public void BestFitColumns(BestFitColumnMode mode)
Parameters
mode
The mode.
CancelEdit()
Close the currently active editor and discard changes.
Declaration
public virtual bool CancelEdit()
Returns
true on successful cancellation.
ClearSelection()
Clears the current selection by deselecting all selected cells (rows).
Declaration
public void ClearSelection()
CloseEditor()
Ends the edit operation without committing the changes
ControlDefinesThemeForElement(RadElement)
Gets whether the control defines the theme for the specific element.
Declaration
public override bool ControlDefinesThemeForElement(RadElement element)
Parameters
element
The element.
Returns
Overrides
Copy()
Copy the formatted values that represent the contents of the selected cells to the System.Windows.Forms.Clipboard.
Declaration
public virtual void Copy()
CreateAccessibilityInstance()
Creates a new accessibility object for the control.
Declaration
protected override AccessibleObject CreateAccessibilityInstance()
Returns
A new AccessibleObject for the control.
Overrides
CreateChildItems(RadElement)
Creates the child items.
Declaration
protected override void CreateChildItems(RadElement parent)
Parameters
parent
The parent.
Overrides
CreateGridViewElement()
Creates the grid view element.
Declaration
protected virtual RadGridViewElement CreateGridViewElement()
Returns
CreateGridViewLayoutSerializer(ComponentXmlSerializationInfo)
Creates the grid view layout serializer.
Declaration
protected virtual GridViewLayoutSerializer CreateGridViewLayoutSerializer(ComponentXmlSerializationInfo info)
Parameters
info
The info.
Returns
Cut()
Moves the current selection in the to the Clipboard.
Declaration
public virtual void Cut()
DeferRefresh()
Calls internally BeginUpdate.
DisplayedColumnCount(bool)
Gets the displayed column count.
DisplayedRowCount(bool)
Gets the displayed row count.
Dispose(bool)
Releases the unmanaged resources used by the RadGridView and optionally releases the managed resources.
Declaration
protected override void Dispose(bool disposing)
Parameters
disposing
true to release both managed and unmanaged resources; false to release only unmanaged resources.
Overrides
EndEdit()
Commits any changes and ends the edit operation on the current cell.
EndUpdate()
Resumes the drawing and layout logic of the grid after a call to BeginUpdate(). This method raises all appropriate change notifications.
Declaration
public void EndUpdate()
EndUpdate(bool)
Resumes the drawing and layout logic of the grid after a call to BeginUpdate().
Declaration
public void EndUpdate(bool notify)
Parameters
notify
When true, raises appropriate change notifications after resuming updates.
Evaluate(string, IEnumerable<GridViewRowInfo>)
Evaluates the specified expression.
Declaration
public object Evaluate(string expression, IEnumerable<GridViewRowInfo> rows)
Parameters
expression
The expression.
rows
IEnumerable<GridViewRowInfo>
The rows.
Returns
GetClipboardContent()
Retrieves the formatted values that represent the contents of the selected cells for copying to the System.Windows.Forms.Clipboard.
GetDefaultXmlSerializationInfo()
Gets the default serialization info for RadGridView used by Save/Load layout methods to persist grid settings to/from XML.
Declaration
public virtual ComponentXmlSerializationInfo GetDefaultXmlSerializationInfo()
Returns
Remarks
You can use the serialization info to include/exclude properties of RadGridView and related objects from XML serialization.
Example:
ComponentXmlSerializationInfo serializationInfo = radGridView1.
info.SerializationMetadata.Add();
HideColumnChooser()
Hides the GridViewColumnChooser
Declaration
public void HideColumnChooser()
InvalidateMultiSelection()
Invalidates the multi selection.
Declaration
protected virtual void InvalidateMultiSelection()
IsInputKey(Keys)
Determines whether the specified key data is input key.
LoadFrom(IDataReader)
Unbound load the IDatareader data and reset current DataSource for MasterTemplate
Declaration
public void LoadFrom(IDataReader dataReader)
Parameters
dataReader
LoadLayout(Stream)
Loads RadGridView properties, sub-objects and their properties from XML stream, using the serialization information provided by the XmlSerializationInfo property
Declaration
public virtual void LoadLayout(Stream stream)
Parameters
stream
LoadLayout(XmlReader)
Loads RadGridView properties, sub-objects and their properties from XML reader, using the serialization information provided by the XmlSerializationInfo property
Declaration
public virtual void LoadLayout(XmlReader xmlReader)
Parameters
xmlReader
LoadLayout(string)
Loads RadGridView properties, sub-objects and their properties from XML file, using the serialization information provided by the XmlSerializationInfo property
Declaration
public virtual void LoadLayout(string fileName)
Parameters
fileName
OnAutoGeneratingColumn(object, GridViewAutoGeneratingColumnEventArgs)
Called when a new column is automatically generated.
Declaration
protected virtual void OnAutoGeneratingColumn(object sender, GridViewAutoGeneratingColumnEventArgs e)
Parameters
sender
The sender.
e
GridViewAutoGeneratingColumnEventArgs
The GridViewAutoGeneratingColumnEventArgs instance containing the event data.
OnBindingContextChanged(EventArgs)
Raises the BindingContextChanged event.
OnCancelRowEdit(object, QuestionEventArgs)
Called when the row editing is canceled.
Declaration
protected virtual void OnCancelRowEdit(object sender, QuestionEventArgs e)
Parameters
sender
The sender.
e
The QuestionEventArgs instance containing the event data.
OnCellBeginEdit(object, GridViewCellCancelEventArgs)
Called when the cell begins editing.
Declaration
protected virtual void OnCellBeginEdit(object sender, GridViewCellCancelEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellCancelEventArgs instance containing the event data.
OnCellClick(object, GridViewCellEventArgs)
Called when [cell click].
Declaration
protected virtual void OnCellClick(object sender, GridViewCellEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellEventArgs instance containing the event data.
OnCellDoubleClick(object, GridViewCellEventArgs)
Called when the cell is double clicked.
Declaration
protected void OnCellDoubleClick(object sender, GridViewCellEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellEventArgs instance containing the event data.
OnCellEditorInitialized(object, GridViewCellEventArgs)
Raises the CellEditorInitialized event.
Declaration
protected virtual void OnCellEditorInitialized(object sender, GridViewCellEventArgs e)
Parameters
sender
The cell that is to be edited.
e
A GridViewCellEventArgs instance containing event data.
OnCellEndEdit(object, GridViewCellEventArgs)
Called when the cell ends editing.
Declaration
protected virtual void OnCellEndEdit(object sender, GridViewCellEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellEventArgs instance containing the event data.
OnCellFormatting(object, CellFormattingEventArgs)
Raises the CellFormatting event
Declaration
protected void OnCellFormatting(object sender, CellFormattingEventArgs e)
Parameters
sender
The cell that needs formatting.
e
A CellFormattingEventArgs instance containing event data.
OnCellMerging(GridViewCellMergingEventArgs)
Raises the CellMerging event
Declaration
protected void OnCellMerging(GridViewCellMergingEventArgs e)
Parameters
e
A GridViewCellMergingEventArgsinstance containing event data.
OnCellMouseMove(object, MouseEventArgs)
Raises the CellMouseMove event
Declaration
protected void OnCellMouseMove(object sender, MouseEventArgs e)
Parameters
sender
e
OnCellPaint(object, GridViewCellPaintEventArgs)
Raises the CellPaint event.
Declaration
protected virtual void OnCellPaint(object sender, GridViewCellPaintEventArgs e)
Parameters
sender
The owner control.
e
An instance of GridViewCellPaintEventArgs containing event data.
OnCellValidated(object, CellValidatedEventArgs)
Raises the CellValidated event.
Declaration
protected virtual void OnCellValidated(object sender, CellValidatedEventArgs e)
Parameters
sender
e
OnCellValidating(object, CellValidatingEventArgs)
Raises the CellValidating event.
Declaration
protected virtual void OnCellValidating(object sender, CellValidatingEventArgs e)
Parameters
sender
e
OnCellValueChanged(object, GridViewCellEventArgs)
Called when the cell value is changed.
Declaration
protected virtual void OnCellValueChanged(object sender, GridViewCellEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellEventArgs instance containing the event data.
OnCellValueNeeded(object, GridViewCellValueEventArgs)
Raises the CellValueNeeded event.
Declaration
protected virtual void OnCellValueNeeded(object sender, GridViewCellValueEventArgs e)
Parameters
sender
The owner control.
e
An instance of GridViewRowEventArgs containing event data.
OnCellValuePushed(object, GridViewCellValueEventArgs)
Raises the CellValuePushed event.
Declaration
protected virtual void OnCellValuePushed(object sender, GridViewCellValueEventArgs e)
Parameters
sender
The owner control.
e
An instance of GridViewRowEventArgs containing event data.
OnChildViewExpanded(object, ChildViewExpandedEventArgs)
Called when the child view is expanded.
Declaration
protected virtual void OnChildViewExpanded(object sender, ChildViewExpandedEventArgs e)
Parameters
sender
The sender.
e
The ChildViewExpandedEventArgs instance containing the event data.
OnChildViewExpanding(object, ChildViewExpandingEventArgs)
Called when the child view is expanding.
Declaration
protected virtual void OnChildViewExpanding(object sender, ChildViewExpandingEventArgs e)
Parameters
sender
The sender.
e
The ChildViewExpandingEventArgs instance containing the event data.
OnChildViewPrinting(object, ChildViewPrintingEventArgs)
Occurs for hierarchy rows with more than one child views.
Declaration
protected virtual void OnChildViewPrinting(object sender, ChildViewPrintingEventArgs e)
Parameters
sender
The print renderer that is currently printing the grid.
e
OnColumnChooserItemElementCreating(object, ColumnChooserItemElementCreatingEventArgs)
Called when the column chooser item element is creating.
Declaration
protected virtual void OnColumnChooserItemElementCreating(object sender, ColumnChooserItemElementCreatingEventArgs e)
Parameters
sender
The sender.
e
ColumnChooserItemElementCreatingEventArgs
The ColumnChooserItemElementCreatingEventArgs instance containing the event data.
OnColumnWidthChanged(object, ColumnWidthChangedEventArgs)
Called when the column width is changed.
Declaration
protected virtual void OnColumnWidthChanged(object sender, ColumnWidthChangedEventArgs args)
Parameters
sender
The sender.
args
The ColumnWidthChangedEventArgs instance containing the event data.
OnColumnWidthChanging(object, ColumnWidthChangingEventArgs)
Called when the column width is changing.
Declaration
protected virtual void OnColumnWidthChanging(object sender, ColumnWidthChangingEventArgs args)
Parameters
sender
The sender.
args
The ColumnWidthChangingEventArgs instance containing the event data.
OnCommandCellClick(object, GridViewCellEventArgs)
Called when the command cell is clicked.
Declaration
protected virtual void OnCommandCellClick(object sender, GridViewCellEventArgs args)
Parameters
sender
The sender.
args
The GridViewCellEventArgs instance containing the event data.
OnContextMenuOpening(object, ContextMenuOpeningEventArgs)
Called when the context menu is opening.
Declaration
protected virtual void OnContextMenuOpening(object sender, ContextMenuOpeningEventArgs args)
Parameters
sender
The sender.
args
The ContextMenuOpeningEventArgs instance containing the event data.
OnCopying(object, GridViewClipboardEventArgs)
Called when RadGridView has prepared appropriate data formats that represent the copy selection, added the copy selection formats to a DataObject, and is ready to either place the DataObject on the Clipboard.
Declaration
protected virtual void OnCopying(object sender, GridViewClipboardEventArgs e)
Parameters
sender
The sender.
e
The GridViewClipboardEventArgs instance containing the event data.
OnCopyingCellClipboardContent(object, GridViewCellValueEventArgs)
Called when the cell clipboard content is being copied.
Declaration
protected virtual void OnCopyingCellClipboardContent(object sender, GridViewCellValueEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellValueEventArgs instance containing the event data.
OnCreateCell(object, GridViewCreateCellEventArgs)
Raises the CreateCell event.
Declaration
protected virtual void OnCreateCell(object sender, GridViewCreateCellEventArgs e)
Parameters
sender
The owner control.
e
An instance of GridViewCreateCellEventArgs containing event data.
OnCreateCompositeFilterDialog(object, GridViewCreateCompositeFilterDialogEventArgs)
Raises the CreateCompositeFilterDialog event.
Declaration
protected virtual void OnCreateCompositeFilterDialog(object sender, GridViewCreateCompositeFilterDialogEventArgs e)
Parameters
sender
The sender.
e
GridViewCreateCompositeFilterDialogEventArgs
The GridViewCreateCompositeFilterDialogEventArgs instance containing the event data.
OnCreateRow(object, GridViewCreateRowEventArgs)
Raises the CreateRow event.
Declaration
protected virtual void OnCreateRow(object sender, GridViewCreateRowEventArgs e)
Parameters
sender
The owner control.
e
An instance of GridViewCreateRowEventArgs containing event data.
OnCreateRowInfo(object, GridViewCreateRowInfoEventArgs)
Called when the row info is created.
Declaration
protected virtual void OnCreateRowInfo(object sender, GridViewCreateRowInfoEventArgs e)
Parameters
sender
The sender.
e
GridViewCreateRowInfoEventArgs
The GridViewCreateRowInfoEventArgs instance containing the event data.
OnCurrentCellChanged(object, CurrentCellChangedEventArgs)
Called when the current cell is changed.
Declaration
protected virtual void OnCurrentCellChanged(object sender, CurrentCellChangedEventArgs e)
Parameters
sender
The sender.
e
The CurrentCellChangedEventArgs instance containing the event data.
OnCurrentColumnChanged(object, CurrentColumnChangedEventArgs)
Raises the CurrentColumnChanged event.
Declaration
protected virtual void OnCurrentColumnChanged(object sender, CurrentColumnChangedEventArgs e)
Parameters
sender
e
A CurrentColumnChangedEventArgs that contains the event data.
OnCurrentRowChanged(object, CurrentRowChangedEventArgs)
Called when the current row is changed.
Declaration
protected virtual void OnCurrentRowChanged(object sender, CurrentRowChangedEventArgs e)
Parameters
sender
The sender.
e
The CurrentRowChangedEventArgs instance containing the event data.
OnCurrentRowChanging(object, CurrentRowChangingEventArgs)
Called when the current row is changing.
Declaration
protected virtual void OnCurrentRowChanging(object sender, CurrentRowChangingEventArgs e)
Parameters
sender
The sender.
e
The CurrentRowChangingEventArgs instance containing the event data.
OnCustomFiltering(object, GridViewCustomFilteringEventArgs)
Raises the CustomFiltering event.
Declaration
protected virtual void OnCustomFiltering(object sender, GridViewCustomFilteringEventArgs e)
Parameters
sender
The owner control.
e
GridViewCustomFilteringEventArgs
An instance of GridViewCustomFilteringEventArgs containing event data.
OnCustomGrouping(object, GridViewCustomGroupingEventArgs)
Raises the CustomGrouping event.
Declaration
protected virtual void OnCustomGrouping(object sender, GridViewCustomGroupingEventArgs e)
Parameters
sender
The owner control.
e
GridViewCustomGroupingEventArgs
An instance of GridViewCustomGroupingEventArgs containing event data.
OnCustomSorting(object, GridViewCustomSortingEventArgs)
Raises the CustomSorting event.
Declaration
protected virtual void OnCustomSorting(object sender, GridViewCustomSortingEventArgs e)
Parameters
sender
The owner control.
e
GridViewCustomSortingEventArgs
An instance of GridViewCustomSortingEventArgs containing event data.
OnDataBindingComplete(object, GridViewBindingCompleteEventArgs)
Raises the DataBindingComplete event.
Declaration
protected virtual void OnDataBindingComplete(object sender, GridViewBindingCompleteEventArgs e)
Parameters
sender
e
GridViewBindingCompleteEventArgs
An GridViewBindingCompleteEventArgs instance that contains the event data.
OnDataError(object, GridViewDataErrorEventArgs)
Called when a data error occurs.
Declaration
protected virtual void OnDataError(object sender, GridViewDataErrorEventArgs e)
Parameters
sender
The sender.
e
The GridViewDataErrorEventArgs instance containing the event data.
OnDataGroupNeeded(object, GridViewDataGroupEventArgs)
Fires when the data group requires in virtual mode..
Declaration
protected virtual void OnDataGroupNeeded(object sender, GridViewDataGroupEventArgs e)
Parameters
sender
The sender.
e
The GridViewDataGroupEventArgs instance containing the event data.
OnDefaultValuesNeeded(object, DefaultValuesNeededEventArgs)
Raises the DefaultValuesNeeded event.
Declaration
protected virtual void OnDefaultValuesNeeded(object sender, DefaultValuesNeededEventArgs e)
Parameters
sender
The owner control.
e
An instance of DefaultValuesNeededEventArgs containing event data.
OnEditorRequired(object, EditorRequiredEventArgs)
Fires when an element for editing a cell is showing.
Declaration
protected virtual void OnEditorRequired(object sender, EditorRequiredEventArgs e)
Parameters
sender
The sender.
e
The EditorRequiredEventArgs instance containing the event data.
OnExpressionEditorFormCreated(object, ExpressionEditorFormCreatedEventArgs)
Fires when a new expression editor form is created.
Declaration
protected virtual void OnExpressionEditorFormCreated(object sender, ExpressionEditorFormCreatedEventArgs e)
Parameters
sender
The sender.
e
ExpressionEditorFormCreatedEventArgs
The ExpressionEditorFormCreatedEventArgs instance containing the event data.
OnFilterChanged(object, GridViewCollectionChangedEventArgs)
Fires when the filter is changed.
Declaration
protected void OnFilterChanged(object sender, GridViewCollectionChangedEventArgs e)
Parameters
sender
The sender.
e
GridViewCollectionChangedEventArgs
The GridViewCollectionChangedEventArgs instance containing the event data.
OnFilterChanging(object, GridViewCollectionChangingEventArgs)
Called when the filter is changing.
Declaration
protected void OnFilterChanging(object sender, GridViewCollectionChangingEventArgs e)
Parameters
sender
The sender.
e
GridViewCollectionChangingEventArgs
The GridViewCollectionChangingEventArgs instance containing the event data.
OnFilterExpressionChanged(object, FilterExpressionChangedEventArgs)
Called when the filter expression is changed.
Declaration
protected void OnFilterExpressionChanged(object sender, FilterExpressionChangedEventArgs args)
Parameters
sender
The sender.
args
FilterExpressionChangedEventArgs
The FilterExpressionChangedEventArgs instance containing the event data.
OnFilterPopupInitialized(object, FilterPopupInitializedEventArgs)
Raises the FilterPopupInitialized event.
Declaration
protected virtual void OnFilterPopupInitialized(object sender, FilterPopupInitializedEventArgs e)
Parameters
sender
The sender.
e
FilterPopupInitializedEventArgs
The FilterPopupInitializedEventArgs instance containing the event data.
OnFilterPopupRequired(object, FilterPopupRequiredEventArgs)
Raises the FilterPopupRequired event.
Declaration
protected virtual void OnFilterPopupRequired(object sender, FilterPopupRequiredEventArgs e)
Parameters
sender
The sender.
e
The FilterPopupRequiredEventArgs instance containing the event data.
OnGotFocus(EventArgs)
Raises the GotFocus event.
OnGroupByChanged(object, GridViewCollectionChangedEventArgs)
Fires when grouping is changed.
Declaration
protected virtual void OnGroupByChanged(object sender, GridViewCollectionChangedEventArgs e)
Parameters
sender
The sender.
e
GridViewCollectionChangedEventArgs
The GridViewCollectionChangedEventArgs instance containing the event data.
OnGroupByChanging(object, GridViewCollectionChangingEventArgs)
Fires when grouping is changing.
Declaration
protected virtual void OnGroupByChanging(object sender, GridViewCollectionChangingEventArgs e)
Parameters
sender
The sender.
e
GridViewCollectionChangingEventArgs
The GridViewCollectionChangingEventArgs instance containing the event data.
OnGroupExpanded(object, GroupExpandedEventArgs)
Fires when the DataGroup is expanded or collapsed.
Declaration
protected virtual void OnGroupExpanded(object sender, GroupExpandedEventArgs e)
Parameters
sender
The sender.
e
The GroupExpandedEventArgs instance containing the event data.
OnGroupExpanding(object, GroupExpandingEventArgs)
Fires when the DataGroup is expanding or collapsing. This behavior is valid when grouping or hierarchy mode is applied.
Declaration
protected virtual void OnGroupExpanding(object sender, GroupExpandingEventArgs e)
Parameters
sender
The sender.
e
The GroupExpandingEventArgs instance containing the event data.
OnGroupSortChanged(object, GridViewGroupSortChangedEventArgs)
Fires after the user has changed the sorting of the group.
Declaration
protected virtual void OnGroupSortChanged(object sender, GridViewGroupSortChangedEventArgs e)
Parameters
sender
The sender.
e
GridViewGroupSortChangedEventArgs
The GridViewGroupSortChangedEventArgs instance containing the event data.
OnGroupSortChanging(object, GridViewGroupSortChangingEventArgs)
Fires when the user changes the sorting of the group. The action can be canceled.
Declaration
protected virtual void OnGroupSortChanging(object sender, GridViewGroupSortChangingEventArgs e)
Parameters
sender
The sender.
e
GridViewGroupSortChangingEventArgs
The GridViewGroupSortChangingEventArgs instance containing the event data.
OnGroupSummaryEvaluate(object, GroupSummaryEvaluationEventArgs)
Fires when evaluation of group summary is undergoing.
Declaration
protected virtual void OnGroupSummaryEvaluate(object sender, GroupSummaryEvaluationEventArgs e)
Parameters
sender
The sender.
e
GroupSummaryEvaluationEventArgs
The GroupSummaryEvaluationEventArgs instance containing the event data.
OnHeaderCellToggleStateChanged(object, GridViewHeaderCellEventArgs)
Fires when a toggle state changed of RadCheckBoxElement in header cell.
Declaration
protected virtual void OnHeaderCellToggleStateChanged(object sender, GridViewHeaderCellEventArgs args)
Parameters
sender
The sender.
args
The GridViewHeaderCellEventArgs instance containing the event data.
OnHyperlinkOpened(object, HyperlinkOpenedEventArgs)
Fires when a link from a GridViewHyperlinkColumn is opened.
Declaration
protected void OnHyperlinkOpened(object sender, HyperlinkOpenedEventArgs e)
Parameters
sender
The sender.
e
The HyperlinkOpenedEventArgs instance containing the event data.
OnHyperlinkOpening(object, HyperlinkOpeningEventArgs)
Called when the hyperlink is opening.
Declaration
protected void OnHyperlinkOpening(object sender, HyperlinkOpeningEventArgs e)
Parameters
sender
The sender.
e
The HyperlinkOpeningEventArgs instance containing the event data.
OnKeyDown(KeyEventArgs)
Raises the KeyDown event.
Declaration
protected override void OnKeyDown(KeyEventArgs e)
Parameters
e
A KeyEventArgs that contains the event data.
Overrides
OnKeyPress(KeyPressEventArgs)
Raises the event.
Declaration
protected override void OnKeyPress(KeyPressEventArgs e)
Parameters
e
The KeyPressEventArgs instance containing the event data.
Overrides
OnKeyUp(KeyEventArgs)
Raises the KeyUp event.
Declaration
protected override void OnKeyUp(KeyEventArgs e)
Parameters
e
A KeyEventArgs that contains the event data.
Overrides
OnLayoutLoaded(object, LayoutLoadedEventArgs)
Fires when the layout is loaded.
Declaration
protected void OnLayoutLoaded(object sender, LayoutLoadedEventArgs e)
Parameters
sender
The sender.
e
The LayoutLoadedEventArgs instance containing the event data.
OnLoad(Size)
Notifies that the control is about to be visualized.
Declaration
protected override void OnLoad(Size desiredSize)
Parameters
desiredSize
Overrides
OnLostFocus(EventArgs)
Raises the event.
OnMouseClick(MouseEventArgs)
Raises the MouseClick event.
Declaration
protected override void OnMouseClick(MouseEventArgs e)
Parameters
e
An MouseEventArgs that contains the event data.
Overrides
OnMouseDoubleClick(MouseEventArgs)
Raises the MouseDoubleClick event.
Declaration
protected override void OnMouseDoubleClick(MouseEventArgs e)
Parameters
e
An MouseEventArgs that contains the event data.
Overrides
OnMouseDown(MouseEventArgs)
Raises the event.
Declaration
protected override void OnMouseDown(MouseEventArgs e)
Parameters
e
The MouseEventArgs instance containing the event data.
Overrides
OnMouseEnter(EventArgs)
Raises the event.
OnMouseLeave(EventArgs)
Raises the event.
OnMouseMove(MouseEventArgs)
Raises the MouseMove event.
Declaration
protected override void OnMouseMove(MouseEventArgs e)
Parameters
e
A MouseEventArgs that contains the event data.
Overrides
OnMouseUp(MouseEventArgs)
Raises the MouseUp event.
Declaration
protected override void OnMouseUp(MouseEventArgs e)
Parameters
e
A MouseEventArgs that contains the event data.
Overrides
OnMouseWheel(MouseEventArgs)
Raises the MouseWheel event.
Declaration
protected override void OnMouseWheel(MouseEventArgs e)
Parameters
e
A MouseEventArgs that contains the event data.
Overrides
OnNewRowNeeded(object, GridViewRowEventArgs)
Fires when the unbound cell requires a value for a cell in order to format and display the cell.
Declaration
protected virtual void OnNewRowNeeded(object sender, GridViewRowEventArgs e)
Parameters
sender
The sender.
e
The GridViewRowEventArgs instance containing the event data.
OnPageChanged(object, EventArgs)
Fires when the current page is changed.
OnPageChanging(object, PageChangingEventArgs)
Fires when the current page is changing.
Declaration
protected virtual void OnPageChanging(object sender, PageChangingEventArgs e)
Parameters
sender
The sender.
e
The PageChangingEventArgs instance containing the event data.
OnPasting(object, GridViewClipboardEventArgs)
Occurs when the RadGridView is ready to paste data.
Declaration
protected virtual void OnPasting(object sender, GridViewClipboardEventArgs e)
Parameters
sender
The sender.
e
The GridViewClipboardEventArgs instance containing the event data.
OnPastingCellClipboardContent(object, GridViewCellValueEventArgs)
Occurs when the RadGridView is ready to paste data to individual cells.
Declaration
protected virtual void OnPastingCellClipboardContent(object sender, GridViewCellValueEventArgs e)
Parameters
sender
The sender.
e
The GridViewCellValueEventArgs instance containing the event data.
OnPrintCellFormatting(object, PrintCellFormattingEventArgs)
Raises the PrintCellFormatting event
Declaration
protected virtual void OnPrintCellFormatting(object sender, PrintCellFormattingEventArgs e)
Parameters
sender
The grid cell that needs formatting.
e
A PrintCellFormattingEventArgsinstance containing event data.
OnPrintCellPaint(object, PrintCellPaintEventArgs)
Raises the PrintCellPaint event
Declaration
protected virtual void OnPrintCellPaint(object sender, PrintCellPaintEventArgs e)
Parameters
sender
The grid cell that is painted.
e
A PrintCellPaintEventArgsinstance containing event data.
OnResize(EventArgs)
Raises the Resize event.
OnRowDirtyStateNeeded(object, QuestionEventArgs)
Fires when an unbound cell requires a value for a cell in order to format and display the cell.
Declaration
protected virtual void OnRowDirtyStateNeeded(object sender, QuestionEventArgs e)
Parameters
sender
The sender.
e
The QuestionEventArgs instance containing the event data.
OnRowFormatting(object, RowFormattingEventArgs)
Raises the RowFormatting event.
Declaration
protected void OnRowFormatting(object sender, RowFormattingEventArgs e)
Parameters
sender
The row that needs formatting.
e
A RowFormattingEventArgs instance containing event data.
OnRowHeightChanged(object, RowHeightChangedEventArgs)
Fires after the height of a row changes.
Declaration
protected virtual void OnRowHeightChanged(object sender, RowHeightChangedEventArgs args)
Parameters
sender
The sender.
args
The RowHeightChangedEventArgs instance containing the event data.
OnRowHeightChanging(object, RowHeightChangingEventArgs)
Fires before the height of a row changes.
Declaration
protected virtual void OnRowHeightChanging(object sender, RowHeightChangingEventArgs args)
Parameters
sender
The sender.
args
The RowHeightChangingEventArgs instance containing the event data.
OnRowIsVisibleChanged(object, EventArgs)
Fires after the IsVisible property of a row changes.
OnRowMouseMove(object, MouseEventArgs)
Raises the RowMouseMove event.
Declaration
protected void OnRowMouseMove(object sender, MouseEventArgs e)
Parameters
sender
The row under the mouse pointer.
e
A MouseEventArgs instance containing event data.
OnRowPaint(object, GridViewRowPaintEventArgs)
Raises the RowPaint event.
Declaration
protected virtual void OnRowPaint(object sender, GridViewRowPaintEventArgs e)
Parameters
sender
The owner control.
e
An instance of GridViewRowPaintEventArgs containing event data.
OnRowSourceNeeded(object, GridViewRowSourceNeededEventArgs)
Fires the RowSourceNeeded event.
Declaration
protected virtual void OnRowSourceNeeded(object sender, GridViewRowSourceNeededEventArgs e)
Parameters
sender
The sender.
e
GridViewRowSourceNeededEventArgs
The GridViewRowSourceNeededEventArgs instance containing the event data.
OnRowValidated(object, RowValidatedEventArgs)
Raises the RowValidated event.
Declaration
protected virtual void OnRowValidated(object sender, RowValidatedEventArgs e)
Parameters
sender
e
An instance of RowValidatedEventArgs containing event data.
OnRowValidating(object, RowValidatingEventArgs)
Raises the RowValidating event.
Declaration
protected virtual void OnRowValidating(object sender, RowValidatingEventArgs e)
Parameters
sender
e
An instance of RowValidatingEventArgs containing event data.
OnRowsChanged(object, GridViewCollectionChangedEventArgs)
Fires when the Rows collection of a GridViewTemplate changes.
Declaration
protected virtual void OnRowsChanged(object sender, GridViewCollectionChangedEventArgs args)
Parameters
sender
The sender.
args
GridViewCollectionChangedEventArgs
The GridViewCollectionChangedEventArgs instance containing the event data.
OnRowsChanging(object, GridViewCollectionChangingEventArgs)
Fires before the Rows collection of a GridViewTemplate changes.
Declaration
protected virtual void OnRowsChanging(object sender, GridViewCollectionChangingEventArgs args)
Parameters
sender
The sender.
args
GridViewCollectionChangingEventArgs
The GridViewCollectionChangingEventArgs instance containing the event data.
OnSelectionChanged(object, EventArgs)
Fires when the current selection changes.
OnSelectionChanging(object, GridViewSelectionCancelEventArgs)
Fires when the current selection is changing.
Declaration
protected virtual void OnSelectionChanging(object sender, GridViewSelectionCancelEventArgs e)
Parameters
sender
The sender.
e
GridViewSelectionCancelEventArgs
The GridViewSelectionCancelEventArgs instance containing the event data.
OnSortChanged(object, GridViewCollectionChangedEventArgs)
Fires when sorting is changed.
Declaration
protected virtual void OnSortChanged(object sender, GridViewCollectionChangedEventArgs e)
Parameters
sender
The sender.
e
GridViewCollectionChangedEventArgs
The GridViewCollectionChangedEventArgs instance containing the event data.
OnSortChanging(object, GridViewCollectionChangingEventArgs)
Fires when sorting is changing.
Declaration
protected virtual void OnSortChanging(object sender, GridViewCollectionChangingEventArgs e)
Parameters
sender
The sender.
e
GridViewCollectionChangingEventArgs
The GridViewCollectionChangingEventArgs instance containing the event data.
OnUserAddedRow(object, GridViewRowEventArgs)
Occurs when the user has finished adding a row to the RadGridView.
Declaration
protected virtual void OnUserAddedRow(object sender, GridViewRowEventArgs e)
Parameters
sender
The sender.
e
The GridViewRowEventArgs instance containing the event data.
OnUserAddingRow(object, GridViewRowCancelEventArgs)
Occurs when the user adding new row to the RadGridView.
Declaration
protected virtual void OnUserAddingRow(object sender, GridViewRowCancelEventArgs e)
Parameters
sender
The sender.
e
The GridViewRowCancelEventArgs instance containing the event data.
OnUserDeletedRow(object, GridViewRowEventArgs)
Occurs when the user has finished deleting a row from the RadGridView.
Declaration
protected virtual void OnUserDeletedRow(object sender, GridViewRowEventArgs e)
Parameters
sender
The sender.
e
The GridViewRowEventArgs instance containing the event data.
OnUserDeletingRow(object, GridViewRowCancelEventArgs)
Occurs when the user deletes a row from the RadGridView.
Declaration
protected virtual void OnUserDeletingRow(object sender, GridViewRowCancelEventArgs e)
Parameters
sender
The sender.
e
The GridViewRowCancelEventArgs instance containing the event data.
OnValidated(EventArgs)
Raises the Validated event.
OnValidating(CancelEventArgs)
Raises the Validating event.
Declaration
protected override void OnValidating(CancelEventArgs e)
Parameters
e
A CancelEventArgs that contains the event data.
Overrides
OnValueChanged(object, EventArgs)
Fires when the value of a cell changes.
OnValueChanging(object, ValueChangingEventArgs)
Fires before the value in a cell is changing.
Declaration
protected virtual void OnValueChanging(object sender, ValueChangingEventArgs e)
Parameters
sender
The sender.
e
The ValueChangingEventArgs instance containing the event data.
OnViewCellFormatting(object, CellFormattingEventArgs)
Raises the ViewCellFormatting event
Declaration
protected void OnViewCellFormatting(object sender, CellFormattingEventArgs e)
Parameters
sender
The grid cell that needs formatting.
e
A CellFormattingEventArgsinstance containing event data.
OnViewRowFormatting(object, RowFormattingEventArgs)
Raises the ViewRowFormatting event.
Declaration
protected void OnViewRowFormatting(object sender, RowFormattingEventArgs e)
Parameters
sender
The row that needs formatting.
e
A RowFormattingEventArgs instance containing event data.
Paste()
Paste the contents of the System.Windows.Forms.Clipboard to the current view.
Declaration
public virtual void Paste()
Print()
Directly prints the RadGridView to the default printer without showing a print dialog.
Declaration
public virtual void Print()
Print(bool)
Directly prints the RadGridView to the default printer or shows printer settings and then prints the RadGridView.
Declaration
public virtual void Print(bool showPrinterSettings)
Parameters
showPrinterSettings
Indicates whether printer settings dialog should be shown.
Print(bool, RadPrintDocument)
Directly prints the RadGridView to the default printer or shows printer settings and then prints the RadGridView.
Declaration
public virtual void Print(bool showPrinterSettings, RadPrintDocument document)
Parameters
showPrinterSettings
Indicates whether printer settings dialog should be shown.
document
As instance of RadPrintDocument used to control the print process.
PrintPreview()
Shows a print preview dialog for editing the RadGridView print settings and previewing how the grid will appear when printed.
Declaration
public virtual void PrintPreview()
PrintPreview(RadPrintDocument)
Shows a print preview dialog for editing the RadGridView print settings and previewing how the grid will appear when printed, using the provided print document.
Declaration
public virtual void PrintPreview(RadPrintDocument document)
Parameters
document
An instance of RadPrintDocument used to control the print process.
ProcessCodedUIMessage(ref IPCMessage)
Processes the coded UI message.
Declaration
protected override void ProcessCodedUIMessage(ref IPCMessage request)
Parameters
request
IPCMessage
The request.
Overrides
ProcessDialogKey(Keys)
Processes a dialog key.
SaveLayout(Stream)
Stores to a stream RadGridView properties, sub-objects and their properties in XML format, using the serialization information provided by the XmlSerializationInfo property
Declaration
public virtual void SaveLayout(Stream stream)
Parameters
stream
SaveLayout(XmlWriter)
Stores RadGridView properties, sub-objects and their properties in XML format, using the serialization information provided by the XmlSerializationInfo property
Declaration
public virtual void SaveLayout(XmlWriter xmlWriter)
Parameters
xmlWriter
XmlWriter to use by the built-in serializer
SaveLayout(string)
Stores to a file RadGridView properties, sub-objects and their properties in XML format, using the serialization information provided by the XmlSerializationInfo property
Declaration
public virtual void SaveLayout(string fileName)
Parameters
fileName
SelectAll()
Select all cells (rows) in RadGriView
Declaration
public void SelectAll()
ShowColumnChooser()
Shows the GridViewColumnChooser for the columns of the master view template.
Declaration
public void ShowColumnChooser()
ShowColumnChooser(GridViewTemplate)
Shows the GridViewColumnChooser.
Declaration
public void ShowColumnChooser(GridViewTemplate template)
Parameters
template
The template which columns will be shown for.
UnWireEvents()
Unsubscribe from the handled events.
Declaration
protected virtual void UnWireEvents()
WireEvents()
Subscribe to events handling the basic features in RadGridView.
Declaration
protected virtual void WireEvents()
WndProc(ref Message)
Processes Windows messages.
Events
AutoGeneratingColumn
Fires each time a new column is automatically generated and is about to be added to the columns of RadGridView. Occurs one time for each public, non-static property in the bound data type when the DataSource property is changed and the AutoGenerateColumns property is true.
Declaration
[Browsable(true)]
public event GridViewAutoGeneratingColumnEventHandler AutoGeneratingColumn
Event Value
CellBeginEdit
Fires when the cell is entering edit mode. The action can be canceled.
Declaration
[Browsable(true)]
public event GridViewCellCancelEventHandler CellBeginEdit
Event Value
CellClick
Fires when a cell is clicked.
Declaration
[Browsable(true)]
public event GridViewCellEventHandler CellClick
Event Value
CellDoubleClick
Fires when a cell is double clicked.
Declaration
[Browsable(true)]
public event GridViewCellEventHandler CellDoubleClick
Event Value
CellEditorInitialized
Fires when an element for editing a cell is initialized and visible.
Declaration
[Browsable(true)]
public event GridViewCellEventHandler CellEditorInitialized
Event Value
CellEndEdit
Fires when the cell editing is finished.
Declaration
[Browsable(true)]
public event GridViewCellEventHandler CellEndEdit
Event Value
CellFormatting
Fires when the content of a data cell needs to be formatted for display.
Declaration
[Browsable(true)]
public event CellFormattingEventHandler CellFormatting
Event Value
CellMerging
Fires when the two neighbor cells are compared and about to be merged.
Declaration
[Browsable(true)]
public event GridViewCellMergingEventHandler CellMerging
Event Value
CellMouseMove
Fires when the mouse pointer moves over the cell.
Declaration
[Browsable(true)]
public event CellMouseMoveEventHandler CellMouseMove
Event Value
CellPaint
Fires when a cell needs to be painted.
Declaration
[Browsable(true)]
public event GridViewCellPaintEventHandler CellPaint
Event Value
CellValidated
Fires when a row has finished validating.
Declaration
public event CellValidatedEventHandler CellValidated
Event Value
CellValidating
Fires when Cell is validating.
Declaration
public event CellValidatingEventHandler CellValidating
Event Value
CellValueChanged
Fires when the value of a cell changes.
Declaration
[Browsable(true)]
public event GridViewCellEventHandler CellValueChanged
Event Value
CellValueNeeded
Fires when the unbound cell requires a value for a cell in order to format and display the cell.
Declaration
[Browsable(true)]
public event GridViewCellValueEventHandler CellValueNeeded
Event Value
CellValuePushed
Fires when the unbound cell changed and requires storage in the underlying data source.
Declaration
[Browsable(true)]
public event GridViewCellValueEventHandler CellValuePushed
Event Value
ChildViewExpanded
Fires when the child view is expanded or collapsed.
Declaration
[Browsable(true)]
public event ChildViewExpandedEventHandler ChildViewExpanded
Event Value
ChildViewExpanding
Fires when the child view is expanded or collapsed.
Declaration
[Browsable(true)]
public event ChildViewExpandingEventHandler ChildViewExpanding
Event Value
ChildViewPrinting
Fires for hierarchy rows with more than one child views.
Declaration
[Browsable(true)]
public event ChildViewPrintingEventHandler ChildViewPrinting
Event Value
ColumnChooserCreated
Fires when a ColumnChooserCreated is created.
Declaration
[Browsable(true)]
public event ColumnChooserCreatedEventHandler ColumnChooserCreated
Event Value
ColumnChooserItemElementCreating
Fires when a new column chooser item element is being created.
Declaration
[Browsable(true)]
public event ColumnChooserItemElementCreatingEventHandler ColumnChooserItemElementCreating
Event Value
ColumnWidthChanged
Fires when the width of a column changes.
Declaration
[Browsable(true)]
public event ColumnWidthChangedEventHandler ColumnWidthChanged
Event Value
ColumnWidthChanging
Fires before the width of a column changes.
Declaration
[Browsable(true)]
public event ColumnWidthChangingEventHandler ColumnWidthChanging
Event Value
CommandCellClick
Fires when a command cell is clicked.
Declaration
[Browsable(true)]
public event CommandCellClickEventHandler CommandCellClick
Event Value
ConditionalFormattingFormShown
Declaration
public event EventHandler ConditionalFormattingFormShown
Event Value
ContextMenuOpening
Fires before a context menu is shown.
Declaration
[Browsable(true)]
public event ContextMenuOpeningEventHandler ContextMenuOpening
Event Value
Copying
Occurs when the RadGridView has prepared appropriate data formats that represent the copy selection, added the copy selection formats to a DataObject, and is ready to either place the DataObject on the Clipboard.
Declaration
[Browsable(true)]
public event GridViewClipboardEventHandler Copying
Event Value
CopyingCellClipboardContent
Occurs when the RadGridView prepares each cell's value to be placed on the Clipboard.
Declaration
[Browsable(true)]
public event GridViewCellValueEventHandler CopyingCellClipboardContent
Event Value
CreateCell
Fires when a cell needs to be created.
Declaration
[Browsable(true)]
public event GridViewCreateCellEventHandler CreateCell
Event Value
CreateCompositeFilterDialog
Occurs when a composite filter dialog is being created.
Declaration
[Browsable(true)]
public event GridViewCreateCompositeFilterDialogEventHandler CreateCompositeFilterDialog
Event Value
CreateRow
Fires when a row needs to be created.
Declaration
[Browsable(true)]
public event GridViewCreateRowEventHandler CreateRow
Event Value
CreateRowInfo
Occurs when the instance of GridViewRowInfo is created.
Declaration
public event GridViewCreateRowInfoEventHandler CreateRowInfo
Event Value
CurrentCellChanged
Fires after the current cell has changed.
Declaration
[Browsable(true)]
public event CurrentCellChangedEventHandler CurrentCellChanged
Event Value
CurrentColumnChanged
Fires when the current column has changed.
Declaration
[Browsable(true)]
public event CurrentColumnChangedEventHandler CurrentColumnChanged
Event Value
CurrentRowChanged
Fires when current row is changed.
Declaration
[Browsable(true)]
public event CurrentRowChangedEventHandler CurrentRowChanged
Event Value
CurrentRowChanging
Fires when the current row is changing. The action can be canceled.
Declaration
[Browsable(true)]
public event CurrentRowChangingEventHandler CurrentRowChanging
Event Value
CurrentViewChanged
Fires when the current view in RadGridView has changed.
Declaration
[Browsable(true)]
public event GridViewCurrentViewChangedEventHandler CurrentViewChanged
Event Value
CustomFiltering
Fires for custom filtering operation.
Declaration
[Browsable(true)]
public event GridViewCustomFilteringEventHandler CustomFiltering
Event Value
CustomGrouping
Fires for custom grouping operation.
Declaration
[Browsable(true)]
public event GridViewCustomGroupingEventHandler CustomGrouping
Event Value
CustomSorting
Fires for custom sorting operation.
Declaration
[Browsable(true)]
public event GridViewCustomSortingEventHandler CustomSorting
Event Value
DataBindingComplete
Fires after data binding operation has finished.
Declaration
[Browsable(true)]
public event GridViewBindingCompleteEventHandler DataBindingComplete
Event Value
DataError
Fires when an external data-parsing or validation operation throws an exception, or when an attempt to commit data to a data source fails.
Declaration
[Browsable(true)]
public event GridViewDataErrorEventHandler DataError
Event Value
DataGroupNeeded
Fires when the data group is required in virtual mode.
Declaration
[Browsable(true)]
public event GridViewDataGroupEventHandler DataGroupNeeded
Event Value
DefaultValuesNeeded
Fires when the user enters the row for new records, so that it can be populated with default values.
Declaration
[Browsable(true)]
public event GridViewRowEventHandler DefaultValuesNeeded
Event Value
EditorRequired
Fires after CellBeginEdit.
Declaration
[Browsable(true)]
public event EditorRequiredEventHandler EditorRequired
Event Value
ExpressionEditorFormCreated
Fires when a new expression editor form is created.
Declaration
[Browsable(true)]
public event ExpressionEditorFormCreatedEventHandler ExpressionEditorFormCreated
Event Value
FilterChanged
Occurs when the filter is changed.
Declaration
[Browsable(true)]
public event GridViewCollectionChangedEventHandler FilterChanged
Event Value
FilterChanging
Occurs when the filter is changing.
Declaration
[Browsable(true)]
public event GridViewCollectionChangingEventHandler FilterChanging
Event Value
FilterExpressionChanged
Occurs when the filter expression is changed.
Declaration
[Browsable(true)]
public event GridViewFilterExpressionChangedEventHandler FilterExpressionChanged
Event Value
FilterPopupInitialized
Occurs when the filter popup has been initialized.
Declaration
[Browsable(true)]
public event FilterPopupInitializedEventHandler FilterPopupInitialized
Event Value
FilterPopupRequired
Occurs when a filter popup is required.
Declaration
[Browsable(true)]
public event FilterPopupRequiredEventHandler FilterPopupRequired
Event Value
GroupByChanged
Fires when grouping is changed.
Declaration
public event GridViewCollectionChangedEventHandler GroupByChanged
Event Value
GroupByChanging
Fires when grouping is changing. The action can be canceled.
Declaration
public event GridViewCollectionChangingEventHandler GroupByChanging
Event Value
GroupExpanded
Fires when the DataGroup is expanded or collapsed.
Declaration
[Browsable(true)]
public event GroupExpandedEventHandler GroupExpanded
Event Value
GroupExpanding
Fires when the DataGroup is expanding or collapsing. This behavior is valid when grouping or hierarchy mode is applied.
Declaration
[Browsable(true)]
public event GroupExpandingEventHandler GroupExpanding
Event Value
GroupSortChanged
Fires after the user has changed the sorting of the group.
Declaration
public event GridViewGroupSortChangedEventHandler GroupSortChanged
Event Value
GroupSortChanging
Fires when the user changes the sorting of the group. The action can be canceled.
Declaration
public event GridViewGroupSortChangingEventHandler GroupSortChanging
Event Value
GroupSummaryEvaluate
Fires when evaluation of group summary is undergoing.
Declaration
[Browsable(true)]
public event GroupSummaryEvaluateEventHandler GroupSummaryEvaluate
Event Value
Remarks
Allows modification of the result by providing access to the currently evaluated value and the data group.
HeaderCellToggleStateChanged
Fires when a toggle state changed of RadCheckBoxElement in header cell.
Declaration
[Browsable(true)]
public event HeaderCellToggleStateChangedEventHandler HeaderCellToggleStateChanged
Event Value
HyperlinkOpened
Occurs when the hyperlink is opened.
Declaration
public event HyperlinkOpenedEventHandler HyperlinkOpened
Event Value
HyperlinkOpening
Occurs when the hyperlink is opening.
Declaration
public event HyperlinkOpeningEventHandler HyperlinkOpening
Event Value
LayoutLoaded
Occurs when the layout is loaded.
Declaration
[Browsable(true)]
public event LayoutLoadedEventHandler LayoutLoaded
Event Value
PageChanged
Fires after the current page has changed.
Declaration
[Browsable(true)]
public event EventHandler<EventArgs> PageChanged
Event Value
PageChanging
Fires when the current page is changing.
Declaration
[Browsable(true)]
public event EventHandler<PageChangingEventArgs> PageChanging
Event Value
Pasting
Occurs when the RadGridView is ready to paste data.
Declaration
[Browsable(true)]
public event GridViewClipboardEventHandler Pasting
Event Value
PastingCellClipboardContent
Occurs when the RadGridView is ready to paste data to individual cells.
Declaration
[Browsable(true)]
public event GridViewCellValueEventHandler PastingCellClipboardContent
Event Value
PrintCellFormatting
Fires when the content of any grid cell needs to be formatted for printing.
Declaration
[Browsable(true)]
public event PrintCellFormattingEventHandler PrintCellFormatting
Event Value
PrintCellPaint
Fires when the content of any grid cell needs to be formatted for printing.
Declaration
[Browsable(true)]
public event PrintCellPaintEventHandler PrintCellPaint
Event Value
RowFormatting
Fires when a data row is invalidated and needs to be formatted.
Declaration
[Browsable(true)]
public event RowFormattingEventHandler RowFormatting
Event Value
Example
void radGridView1_RowFormatting(object sender, RowFormattingEventArgs e)
{
if (e.RowElement.RowInfo.Cells.Count > 0 && (string)e.RowElement.RowInfo.Cells[0].Value == "3")
e.RowElement.Font = strikeoutFont;
else
e.RowElement.Font = SystemFonts.DialogFont;
}
RowHeightChanged
Fires after the height of a row changes.
Declaration
[Browsable(true)]
public event RowHeightChangedEventHandler RowHeightChanged
Event Value
RowHeightChanging
Fires before the height of a row changes.
Declaration
[Browsable(true)]
public event RowHeightChangingEventHandler RowHeightChanging
Event Value
RowMouseMove
Fires when the mouse pointer moves over a row.
Declaration
[Browsable(true)]
public event RowMouseMoveEventHandler RowMouseMove
Event Value
RowPaint
Fires when a row needs to be painted.
Declaration
[Browsable(true)]
public event GridViewRowPaintEventHandler RowPaint
Event Value
RowSourceNeeded
Provides data for the parent row in RadGridView Hierarchy Mode
Declaration
[Browsable(true)]
public event GridViewRowSourceNeededEventHandler RowSourceNeeded
Event Value
RowValidated
Fires when a row is validated.
Declaration
public event RowValidatedEventHandler RowValidated
Event Value
RowValidating
Fires before a row is validated.
Declaration
public event RowValidatingEventHandler RowValidating
Event Value
RowsChanged
Fires when the Rows collection of a GridViewTemplate changes.
Declaration
[Browsable(true)]
public event GridViewCollectionChangedEventHandler RowsChanged
Event Value
RowsChanging
Fires before the Rows collection of a GridViewTemplate changes.
Declaration
[Browsable(true)]
public event GridViewCollectionChangingEventHandler RowsChanging
Event Value
SelectionChanged
Fires when the current selection is changed.
Declaration
[Browsable(true)]
public event EventHandler SelectionChanged
Event Value
SelectionChanging
Fires when the current selection is changing.
Declaration
[Browsable(true)]
public event GridViewSelectionCancelEventHandler SelectionChanging
Event Value
SortChanged
Fires when the sorting is changed.
Declaration
public event GridViewCollectionChangedEventHandler SortChanged
Event Value
SortChanging
Fires when the sorting is changing. The action can be canceled.
Declaration
public event GridViewCollectionChangingEventHandler SortChanging
Event Value
UserAddedRow
Occurs when the user has finished adding a row to the RadGridView
Declaration
[Browsable(true)]
public event GridViewRowEventHandler UserAddedRow
Event Value
UserAddingRow
Occurs when the user adding new row to the RadGridView
Declaration
[Browsable(true)]
public event GridViewRowCancelEventHandler UserAddingRow
Event Value
UserDeletedRow
Occurs when the user has finished deleting a row from the RadGridView.
Declaration
[Browsable(true)]
public event GridViewRowEventHandler UserDeletedRow
Event Value
UserDeletingRow
Occurs when the user deletes a row from the RadGridView.
Declaration
[Browsable(true)]
public event GridViewRowCancelEventHandler UserDeletingRow
Event Value
ValueChanged
Fires when the value of an editor changes.
Declaration
[Browsable(true)]
public event EventHandler ValueChanged
Event Value
ValueChanging
Fires before the value in an editor is being changed. The action can be canceled.
Declaration
[Browsable(true)]
public event ValueChangingEventHandler ValueChanging
Event Value
ViewCellFormatting
Fires when the content of any grid cell needs to be formatted for display.
Declaration
[Browsable(true)]
public event CellFormattingEventHandler ViewCellFormatting
Event Value
ViewRowFormatting
Fires when a grid row is invalidated and needs to be formatted.
Declaration
[Browsable(true)]
public event RowFormattingEventHandler ViewRowFormatting
Event Value