Class GridControl
GridControl provides a simplified way to use a grid control and model in one place.
Inheritance
System.Object
GridControl
Implements
System.IDisposable
System.ComponentModel.ISupportInitialize
Assembly: Syncfusion.Grid.Windows.dll
public class GridControl : GridControlBaseImp, IDisposable, ICancelModeProvider, ISplitterPaneSupport, IScrollBarWrapperContainer, ISupportUpdating, ISupportIntelliMouse, IQueryFocusInside, INonClientPaintingSupport, IThemedControl, ICreateNewWindow, IGridModelSource, IGridWindowlessSite, IGridWindowlessObject, IFindParentForm, IThemeProvider, ISupportInitialize, IVisualStyle
Constructors
Initializes a new GridControl object with default settings.
Declaration
Declaration
public GridControl(GridModel model)
Parameters
| Type |
Name |
Description |
| GridModel |
model |
The grid model.
|
Properties
Declaration
public GridCellActivateAction ActivateCurrentCellBehavior { get; set; }
Property Value
This example shows how to use ActivateCurrentCellBehavior property.
// Current cell will be activated when clicking on a cell.
this.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.ClickOnCell;
' Current cell will be activated when clicking on a cell.
Me.gridControl1.ActivateCurrentCellBehavior = GridCellActivateAction.ClickOnCell
Declaration
public GridControlBase ActiveGridView { get; set; }
Property Value
Declaration
public bool AllowDragSelectedCols { get; set; }
Property Value
Declaration
public bool AllowDragSelectedRows { get; set; }
Property Value
Declaration
public GridScrollCurrentCellReason AllowScrollCurrentCellInView { get; set; }
Property Value
Declaration
public GridSelectionFlags AllowSelection { get; set; }
Property Value
Declaration
public bool AllowThumbTrack { get; set; }
Property Value
Declaration
public Color AlphaBlendSelectionColor { get; set; }
Property Value
| Type |
| System.Drawing.Color |
Gets or Sets the Legacy styles in the Table Model
Value should be false to apply ColorStyles
Declaration
public bool ApplyVisualStyles { get; set; }
Property Value
Declaration
public GridModelBanneredRanges BanneredRanges { get; }
Property Value
Declaration
public GridBaseStylesMap BaseStylesMap { get; set; }
Property Value
This example shows how to use BaseStylesMap property.
// TextColor for all the grid cells will be changed to Blue
this.gridControl1.BaseStylesMap["Standard"].StyleInfo.TextColor = Color.Blue;
// Backcolor for all the header cells (Row and Column) will be changed as "Red"
this.gridControl1.BaseStylesMap["Header"].StyleInfo.BackColor = Color.Red;
' TextColor for all the grid cells will be changed to Blue
Me.gridControl1.BaseStylesMap["Standard"].StyleInfo.TextColor = Color.Blue
' Backcolor for all the header cells (Row and Column) will be changed as "Red"
Me.gridControl1.BaseStylesMap["Header"].StyleInfo.BackColor = Color.Red
Gets or sets the enable browse only state for Grid, can't able to edit and update.
Declaration
public bool BrowseOnly { get; set; }
Property Value
See CellModels in the GridModel class for information.
Declaration
public GridCellModelCollection CellModels { get; }
Property Value
This example shows how to use CellModels property.
//Specify the cell model to be added in the grid model with cell type name.
this.gridControl1.CellModels.Add("SampleCellType", new GridHeaderCellModel(this.gridControl1.Model));
// Set the added cell type to the cell.
this.gridControl1.ColStyles[1].CellType = "SampleCellType";
' Specify the cell model to be added in the grid model with cell type name.
Me.gridControl1.CellModels.Add("SampleCellType", new GridHeaderCellModel(this.gridControl1.Model))
' Set the added cell type to the cell.
Me.gridControl1.ColStyles[1].CellType = "SampleCellType"
Gets or sets Excel-like current cell behavior. When the user clicks on a cell out of a selected range for which .Enabled has been set to false.
Declaration
public GridClickedOnDisabledCellBehavior ClickedOnDisabledCellBehavior { get; set; }
Property Value
See ColCount in the GridModel class for information.
Declaration
public int ColCount { get; set; }
Property Value
Gets or sets a collection of GridColHidden objects. This collection is a wrapper collection
for values in the HideCols object. It provides support for modifying
values through a CollectionEditor and code serialization at design-time.
Declaration
public GridColHiddenCollection ColHiddenEntries { get; set; }
Property Value
[Deprecated]Gets or sets the VisualStyles (skins) like Office2010, Office2007, Office2003
Declaration
public ColorStyles ColorStyles { get; set; }
Property Value
See Cols in the GridModel class for information.
Declaration
public GridModelRowColOperations Cols { get; }
Property Value
See ColStyles in the GridModel class for information.
Declaration
public GridModelColStylesIndexer ColStyles { get; set; }
Property Value
This example shows how to use ColStyles property.
// Setting whole column's styles.
this.gridControl1.ColStyles[1].BackColor = Color.Red;
this.gridControl1.ColStyles[1].Font.Facename = "Segoe UI";
this.gridControl1.ColStyles[1].Font.Bold = true;
' Setting whole column's styles.
Me.gridControl1.ColStyles[1].BackColor = Color.Red
Me.gridControl1.ColStyles[1].Font.Facename = "Segoe UI"
Me.gridControl1.ColStyles[1].Font.Bold = true
Gets or sets a collection of GridColWidth objects. This collection is a wrapper collection
for values in the ColWidths object. It provides support for modifying
values through a CollectionEditor and code serialization at design-time.
Declaration
public GridColWidthCollection ColWidthEntries { get; set; }
Property Value
See ColWidths in the GridModel class for information.
Declaration
public GridModelRowColSizeIndexer ColWidths { get; set; }
Property Value
Declaration
public GridModelCommandManager CommandStack { get; }
Property Value
This example shows how to use CommandStack property.
// Undo the actions in the grid.
this.gridControl1.CommandStack.Undo();
//Redo the actions in the grid.
this.gridControl1.CommandStack.Redo();
// Getting the current command mode of the grid.
GridCommandMode commandMode = this.gridControl1.CommandStack.Mode;
' Undo the actions in the grid.
Me.gridControl1.CommandStack.Undo()
' Redo the actions in the grid.
Me.gridControl1.CommandStack.Redo()
' Getting the current command mode of the grid.
Dim commandMode As GridCommandMode = Me.gridControl1.CommandStack.Mode
Declaration
public GridControllerOptions ControllerOptions { get; set; }
Property Value
This example shows how to use ControllerOptions property.
// Resizing and selecting functionality of row and column will be enabled for grid. Other functionalities like Clicking, OleDropTarget ..etc will not be worked.
this.gridControl1.ControllerOptions = GridControllerOptions.ResizeCells | GridControllerOptions.SelectCells;
' Resizing and selecting functionality of row and column will be enabled for grid. Other functionalities like Clicking, OleDropTarget ..etc will not be worked.
Me.gridControl1.ControllerOptions = (GridControllerOptions.ResizeCells Or GridControllerOptions.SelectCells)
Declaration
public GridModelCoveredRanges CoveredRanges { get; }
Property Value
This example shows how to use CoveredRanges property.
// Defining the covered range.
GridRangeInfo coveredRange = GridRangeInfo.Cells(1, 2, 5, 5);
// Adding the range to be covered.
this.gridControl1.CoveredRanges.Add(coveredRange);
' Defining the covered range.
Dim coveredRange As GridRangeInfo = GridRangeInfo.Cells(1, 2, 5, 5)
' Adding the range to be covered.
Me.gridControl1.CoveredRanges.Add(coveredRange)
Declaration
public GridCurrentCellInfo CurrentCellInfo { get; set; }
Property Value
Declaration
public GridCellRendererBase CurrentCellRenderer { get; }
Property Value
See CutPaste in the GridModel class for information.
Declaration
public GridModelCutPaste CutPaste { get; }
Property Value
See Data in the GridModel class for information.
Declaration
public GridData Data { get; set; }
Property Value
Declaration
public GridModelStyleDataExchange DataExchange { get; }
Property Value
Declaration
public GridDataObjectConsumerOptions DataObjectConsumerOptions { get; set; }
Property Value
Declaration
public GridBorderStyle DefaultGridBorderStyle { get; set; }
Property Value
Declaration
public bool DiscardReadOnly { get; set; }
Property Value
Gets or sets a value indicating whether horizontal lines should be displayed.
Declaration
public bool DisplayHorizontalLines { get; set; }
Property Value
Gets or sets a value indicating whether vertical lines should be displayed.
Declaration
public bool DisplayVerticalLines { get; set; }
Property Value
Declaration
public MouseButtons DragSelectedCellsMouseButtonsMask { get; set; }
Property Value
| Type |
| System.Windows.Forms.MouseButtons |
This example shows how to use DragSelectedCellsMouseButtonsMask property.
// Setting the mouse button mask to drag either using Left or Right mouse button.
this.gridControl1.DragSelectedCellsMouseButtonsMask = System.Windows.Forms.MouseButtons.Left | System.Windows.Forms.MouseButtons.Right;
' Setting the mouse button mask to drag either using Left or Right mouse button.
Me.gridControl1.DragSelectedCellsMouseButtonsMask = (System.Windows.Forms.MouseButtons.Left Or System.Windows.Forms.MouseButtons.Right)
See DrawOrder in the GridModel class for information.
Declaration
public GridDrawOrder DrawOrder { get; set; }
Property Value
Gets or sets the touch mode.
Declaration
public override bool EnableTouchMode { get; set; }
Property Value
Overrides
Declaration
public GridDirectionType EnterKeyBehavior { get; set; }
Property Value
This example shows how to use EnterKeyBehavior property.
// Moves the current cell to the bottom when pressing Enter key.
this.gridControl1.EnterKeyBehavior = GridDirectionType.Bottom;
' Moves the current cell to the bottom when pressing Enter key.
Me.gridControl1.EnterKeyBehavior = GridDirectionType.Bottom
Declaration
public bool ExcelLikeCurrentCell { get; set; }
Property Value
Declaration
public bool ExcelLikeSelectionFrame { get; set; }
Property Value
See FileName in the GridModel class for information.
Declaration
public string FileName { get; set; }
Property Value
Declaration
public GridFloatCellsMode FloatCellsMode { get; set; }
Property Value
Declaration
public GridModelFloatingCells FloatingCells { get; }
Property Value
Specifies the font used to display text in the grid.
Declaration
public override Font Font { get; set; }
Property Value
Gets or sets a collection of GridCellInfo objects. This collection is a wrapper collection
for cells in the GridData object. It provides support for code serialization at design-time.
Declaration
public GridCellInfoCollection GridCells { get; set; }
Property Value
Gets or sets the color of grid lines.
Declaration
public Color GridLineColor { get; set; }
Property Value
| Type |
| System.Drawing.Color |
Gets or sets the VisualStyles (skins) like Office2010, Office2007, Office2003
Declaration
public GridVisualStyles GridVisualStyles { get; set; }
Property Value
Gets or sets the VisualStylesDrawing object
Declaration
public IVisualStylesDrawing GridVisualStylesDrawing { get; set; }
Property Value
Declaration
public bool HasCurrentCellInfo { get; }
Property Value
See HasData in the GridModel class for information.
Declaration
public bool HasData { get; }
Property Value
See HideCols in the GridModel class for information.
Declaration
public GridModelHideRowColsIndexer HideCols { get; set; }
Property Value
This example shows how to use HideCols property.
// Hiding the first column.
this.gridControl1.HideCols[1] = true;
// Removing the second column from hidden.
this.gridControl1.HideCols[4] = false;
' Hiding the first column.
Me.gridControl1.HideCols[1] = true
' Removing the second column from hidden.
Me.gridControl1.HideCols[4] = false
See HideRows in the GridModel class for information.
Declaration
public GridModelHideRowColsIndexer HideRows { get; set; }
Property Value
This example shows how to use HideRows property.
// Hiding the first row.
this.gridControl1.HideRows[1] = true;
// Removing the first row from hidden.
this.gridControl1.HideRows [3] = false;
' Hiding the first row.
Me.gridControl1.HideRows[1] = true
' Removing the first row from hidden.
Me.gridControl1.HideRows [3] = false
Declaration
public bool HighlightFrozenLine { get; set; }
Property Value
Declaration
public override bool HorizontalScrollTips { get; set; }
Property Value
Overrides
Declaration
public override bool HorizontalThumbTrack { get; set; }
Property Value
Overrides
Declaration
public bool IgnoreReadOnly { get; set; }
Property Value
Declaration
public bool Initializing { get; }
Property Value
Indicates the grid is wired with excel style filter.
This is specifically used to apply the filter in excel sheet while exporting.
Declaration
public bool IsExcelFilterWired { get; set; }
Property Value
See IsUntitled in the GridModel class for information.
Declaration
public bool IsUntitled { get; }
Property Value
Declaration
public GridStyleInfo this[int rowIndex, int colIndex] { get; set; }
Parameters
| Type |
Name |
Description |
| System.Int32 |
rowIndex |
|
| System.Int32 |
colIndex |
|
Property Value
Gets or sets the method in which items are selected in
the GridControl when it is being used in list box mode
.
Declaration
public virtual SelectionMode ListBoxSelectionMode { get; set; }
Property Value
| Type |
| System.Windows.Forms.SelectionMode |
This example shows how to use ListBoxSelectionMode property.
// Setting grid's selection mode as MultiExtended
this.gridControl1.ListBoxSelectionMode = SelectionMode.MultiExtended;
' Setting grid control selection mode as MultiExtended
Me.gridControl1.ListBoxSelectionMode = SelectionMode.MultiExtended
Declaration
public int MinResizeColSize { get; set; }
Property Value
Declaration
public int MinResizeRowSize { get; set; }
Property Value
See Modified in the GridModel class for information.
Declaration
public bool Modified { get; set; }
Property Value
Declaration
public bool NumberedColHeaders { get; set; }
Property Value
Declaration
public bool NumberedRowHeaders { get; set; }
Property Value
Gets or sets a value indicating whether column headers should be printed when printing the grid.
Declaration
public bool PrintColumnHeader { get; set; }
Property Value
Gets or sets a value indicating whether the grid should draw horizontal lines when printing.
Declaration
public bool PrintHorizontalLines { get; set; }
Property Value
Gets or sets a value indicating whether row headers should be printed when printing the grid.
Declaration
public bool PrintRowHeader { get; set; }
Property Value
Gets or sets a value indicating whether the grid should draw vertical lines when printing.
Declaration
public bool PrintVerticalLines { get; set; }
Property Value
See Properties in the GridModel class for information.
Declaration
public GridProperties Properties { get; set; }
Property Value
Assigns the new UIAProvider for Accessibility.
Declaration
public GridUIAProvider Provider { get; }
Property Value
Gets or sets a collection of GridRangeStyle objects. This collection is a wrapper collection
for cells in the GridData object. It provides support for modifying
cells through a CollectionEditor and code serialization at design-time.
Declaration
public GridRangeStyleCollection RangeStyles { get; set; }
Property Value
See ReadOnly in the GridModel class for information.
Declaration
public bool ReadOnly { get; set; }
Property Value
Declaration
public GridRefreshCurrentCellBehavior RefreshCurrentCellBehavior { get; set; }
Property Value
Declaration
public GridResizeCellsBehavior ResizeColsBehavior { get; set; }
Property Value
Declaration
public GridResizeCellsBehavior ResizeRowsBehavior { get; set; }
Property Value
See RowCount in the GridModel class for information.
Declaration
public int RowCount { get; set; }
Property Value
Gets or sets a collection of GridRowHeight objects. This collection is a wrapper collection
for values in the RowHeights object. It provides support for modifying
values through a CollectionEditor and code serialization at design-time.
Declaration
public GridRowHeightCollection RowHeightEntries { get; set; }
Property Value
See RowHeights in the GridModel class for information.
Declaration
public GridModelRowColSizeIndexer RowHeights { get; set; }
Property Value
Gets or sets a collection of GridRowHidden objects. This collection is a wrapper collection
for values in the HideRows object. It provides support for modifying
values through a CollectionEditor and code serialization at design-time.
Declaration
public GridRowHiddenCollection RowHiddenEntries { get; set; }
Property Value
See Rows in the GridModel class for information.
Declaration
public GridModelRowColOperations Rows { get; }
Property Value
Declaration
public GridModelRowStylesIndexer RowStyles { get; }
Property Value
This example shows how to use RowStyles property.
// Setting styles for the whole row with the specific row index.
this.gridControl1.RowStyles[1].BackColor = Color.Red;
this.gridControl1.RowStyles[1].Font.Facename = "Segoe UI";
this.gridControl1.RowStyles[1].Font.Bold = true;
' Setting styles for the whole row with the specific row index.
Me.gridControl1.RowStyles(1).BackColor = Color.Red
Me.gridControl1.RowStyles(1).Font.Facename = "Segoe UI"
Me.gridControl1.RowStyles(1).Font.Bold = true
Declaration
public bool ScrollFrozen { get; set; }
Property Value
Declaration
public MouseButtons SelectCellsMouseButtonsMask { get; set; }
Property Value
| Type |
| System.Windows.Forms.MouseButtons |
Gets or sets how to serialize grid data at design-time. You can choose to serialize
cell contents as code into the Forms InitializeComponent method or you can choose
to serialize cell contents into a ResX file. Default is GridSerializeCellsBehavior.SerializeIntoCode.
Declaration
public GridSerializeCellsBehavior SerializeCellsBehavior { get; set; }
Property Value
Declaration
public bool ShouldSynchronizeCurrentCell { get; set; }
Property Value
Gets or sets a value indicating whether the grid should be display column headers.
Declaration
public bool ShowColumnHeaders { get; set; }
Property Value
Declaration
public GridShowCurrentCellBorder ShowCurrentCellBorderBehavior { get; set; }
Property Value
This example shows how to use ShowCurrentCellBorderBehavior property.
//Current cell border will always visible
this.gridControl1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.AlwaysVisible;
'Current cell border will always visible
Me.gridControl1.ShowCurrentCellBorderBehavior = GridShowCurrentCellBorder.AlwaysVisible
Gets or sets a value indicating whether row headers should be displayed or hidden. (Might be better to use HideCols[0] = false) instead.
Declaration
public bool ShowRowHeaders { get; set; }
Property Value
Gets or sets the site of the control.
Declaration
public override ISite Site { get; set; }
Property Value
| Type |
| System.ComponentModel.ISite |
Declaration
public bool SmoothControlResize { get; set; }
Property Value
See TableStyle in the GridModel class for information.
Declaration
public GridStyleInfo TableStyle { get; set; }
Property Value
This example shows how to use TableStyle/// This example shows how to use CoveredRanges property. property.
this.gridControl1.TableStyle.TextColor = Color.Red;
this.gridControl1.TableStyle.Font.Facename = "Segoe UI";
this.gridControl1.TableStyle.Font.Size = 15;
Me.gridControl1.TableStyle.TextColor = Color.Red
Me.gridControl1.TableStyle.Font.Facename = "Segoe UI"
Me.gridControl1.TableStyle.Font.Size = 15
TextDataExchange
Declaration
public GridModelTextDataExchange TextDataExchange { get; }
Property Value
Declaration
public bool TransparentBackground { get; set; }
Property Value
Declaration
public override BeginUpdateOptions UpdateOptions { get; }
Property Value
Overrides
See UserData in the GridModel class for information.
Declaration
public IDictionary UserData { get; }
Property Value
| Type |
| System.Collections.IDictionary |
UseRightToLeftCompatibleTextBox
Gets or sets a value indicating whether to control the kind of textbox control that is created for TextBox cells.
In general the original text box behaves better than the richtext box with Hebrew and arabic languages.
By default the grid uses the RichTextBox control for cell editing, but if you set
UseRightToLeftCompatibleTextBox to true then the grid will do editing with original TextBox controls
instead.
Declaration
public bool UseRightToLeftCompatibleTextBox { get; set; }
Property Value
Declaration
public override bool VerticalScrollTips { get; set; }
Property Value
Overrides
Declaration
public override bool VerticalThumbTrack { get; set; }
Property Value
Overrides
Methods
Declaration
public void add_BanneredRangesChanged(GridBanneredRangesChangedEventHandler value)
Parameters
Declaration
public void add_BanneredRangesChanging(GridBanneredRangesChangingEventHandler value)
Parameters
Declaration
public void add_CellsChanged(GridCellsChangedEventHandler value)
Parameters
Declaration
public void add_CellsChanging(GridCellsChangingEventHandler value)
Parameters
Declaration
public void add_ClearingCells(GridClearingCellsEventHandler value)
Parameters
Declaration
public void add_ClipboardCanCopy(GridCutPasteEventHandler value)
Parameters
Declaration
public void add_ClipboardCanCut(GridCutPasteEventHandler value)
Parameters
Declaration
public void add_ClipboardCanPaste(GridCutPasteEventHandler value)
Parameters
Declaration
public void add_ClipboardCopy(GridCutPasteEventHandler value)
Parameters
Declaration
public void add_ClipboardCopyToBuffer(ClipboardCopyToBufferEventHandler value)
Parameters
Declaration
public void add_ClipboardCut(GridCutPasteEventHandler value)
Parameters
Declaration
public void add_ClipboardPaste(GridCutPasteEventHandler value)
Parameters
Declaration
public void add_ColsHidden(GridRowColHiddenEventHandler value)
Parameters
Declaration
public void add_ColsHiding(GridRowColHidingEventHandler value)
Parameters
Declaration
public void add_ColsInserted(GridRangeInsertedEventHandler value)
Parameters
Declaration
public void add_ColsInserting(GridRangeInsertingEventHandler value)
Parameters
Declaration
public void add_ColsMoved(GridRangeMovedEventHandler value)
Parameters
Declaration
public void add_ColsMoving(GridRangeMovingEventHandler value)
Parameters
Declaration
public void add_ColsRemoved(GridRangeRemovedEventHandler value)
Parameters
Declaration
public void add_ColsRemoving(GridRangeRemovingEventHandler value)
Parameters
Declaration
public void add_ColWidthsChanged(GridRowColSizeChangedEventHandler value)
Parameters
Declaration
public void add_ColWidthsChanging(GridRowColSizeChangingEventHandler value)
Parameters
Declaration
public void add_CoveredRangesChanged(GridCoveredRangesChangedEventHandler value)
Parameters
Declaration
public void add_CoveredRangesChanging(GridCoveredRangesChangingEventHandler value)
Parameters
Declaration
public void add_DefaultColWidthChanged(GridDefaultSizeChangedEventHandler value)
Parameters
Declaration
public void add_DefaultColWidthChanging(GridDefaultSizeChangingEventHandler value)
Parameters
Declaration
public void add_DefaultRowHeightChanged(GridDefaultSizeChangedEventHandler value)
Parameters
Declaration
public void add_DefaultRowHeightChanging(GridDefaultSizeChangingEventHandler value)
Parameters
Declaration
public void add_EndUpdateRequest(GridEndUpdateRequestEventHandler value)
Parameters
Declaration
public void add_FilterBarChoices(GridFilterBarChoicesEventHandler value)
Parameters
Declaration
public void add_FilterBarSelectionChanged(FilterBarSelectionChangedEventHandler value)
Parameters
Declaration
public void add_FilterBarSelectionChanging(FilterBarSelectionChangingEventHandler value)
Parameters
Declaration
public void add_FloatingCellsChanged(GridFloatingCellsChangedEventHandler value)
Parameters
Declaration
public void add_FrozenColCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void add_FrozenColCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void add_FrozenRowCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void add_FrozenRowCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void add_HeaderColCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void add_HeaderColCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void add_HeaderRowCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void add_HeaderRowCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void add_MergeCellsChanged(GridMergeCellsChangedEventHandler value)
Parameters
Declaration
public void add_OperationFeedback(OperationFeedbackEventHandler value)
Parameters
add_ParseCommonFormats(GridCellTextEventHandler)
Declaration
public void add_ParseCommonFormats(GridCellTextEventHandler value)
Parameters
add_PasteCellText(GridPasteCellTextEventHandler)
Declaration
public void add_PasteCellText(GridPasteCellTextEventHandler value)
Parameters
Declaration
public void add_PrepareChangeSelection(GridPrepareChangeSelectionEventHandler value)
Parameters
Declaration
public void add_PrepareGraphics(GraphicsEventHandler value)
Parameters
Declaration
public void add_QueryBanneredRange(GridQueryBanneredRangeEventHandler value)
Parameters
Declaration
public void add_QueryCanMergeCells(GridQueryCanMergeCellsEventHandler value)
Parameters
add_QueryCellFormattedText(GridCellTextEventHandler)
Declaration
public void add_QueryCellFormattedText(GridCellTextEventHandler value)
Parameters
Declaration
public void add_QueryCellInfo(GridQueryCellInfoEventHandler value)
Parameters
Declaration
public void add_QueryCellModel(GridQueryCellModelEventHandler value)
Parameters
add_QueryCellText(GridCellTextEventHandler)
Declaration
public void add_QueryCellText(GridCellTextEventHandler value)
Parameters
Declaration
public void add_QueryColCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void add_QueryColWidth(GridRowColSizeEventHandler value)
Parameters
Declaration
public void add_QueryCoveredRange(GridQueryCoveredRangeEventHandler value)
Parameters
Declaration
public void add_QueryOleDataSourceData(GridQueryOleDataSourceDataEventHandler value)
Parameters
Declaration
public void add_QueryRowCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void add_QueryRowHeight(GridRowColSizeEventHandler value)
Parameters
Declaration
public void add_RowHeightsChanged(GridRowColSizeChangedEventHandler value)
Parameters
Declaration
public void add_RowHeightsChanging(GridRowColSizeChangingEventHandler value)
Parameters
Declaration
public void add_RowsHidden(GridRowColHiddenEventHandler value)
Parameters
Declaration
public void add_RowsHiding(GridRowColHidingEventHandler value)
Parameters
Declaration
public void add_RowsInserted(GridRangeInsertedEventHandler value)
Parameters
Declaration
public void add_RowsInserting(GridRangeInsertingEventHandler value)
Parameters
Declaration
public void add_RowsMoved(GridRangeMovedEventHandler value)
Parameters
Declaration
public void add_RowsMoving(GridRangeMovingEventHandler value)
Parameters
Declaration
public void add_RowsRemoved(GridRangeRemovedEventHandler value)
Parameters
Declaration
public void add_RowsRemoving(GridRangeRemovingEventHandler value)
Parameters
add_SaveCellFormattedText(GridCellTextEventHandler)
Declaration
public void add_SaveCellFormattedText(GridCellTextEventHandler value)
Parameters
Declaration
public void add_SaveCellInfo(GridSaveCellInfoEventHandler value)
Parameters
add_SaveCellText(GridCellTextEventHandler)
Declaration
public void add_SaveCellText(GridCellTextEventHandler value)
Parameters
Declaration
public void add_SaveColCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void add_SaveColWidth(GridRowColSizeEventHandler value)
Parameters
Declaration
public void add_SaveRowCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void add_SaveRowHeight(GridRowColSizeEventHandler value)
Parameters
Declaration
public void add_SelectionChanged(GridSelectionChangedEventHandler value)
Parameters
Declaration
public void add_SelectionChanging(GridSelectionChangingEventHandler value)
Parameters
Adds border margins to given cell client area size. The borders are determined from a specified style with cell content information.
Declaration
public Size AddBorders(Size size, GridStyleInfo style)
Parameters
| Type |
Name |
Description |
| System.Drawing.Size |
size |
The System.Drawing.Size with the cell size.
|
| GridStyleInfo |
style |
The GridStyleInfo object that holds cell information.
|
Returns
| Type |
Description |
| System.Drawing.Size |
The System.Drawing.Size with the cell size including its borders.
|
Declaration
public void ApplyScaleToControl(float sf)
Parameters
| Type |
Name |
Description |
| System.Single |
sf |
Represents the floating point number
|
Attaches a model for the grid control.
Declaration
public void Attach(GridModel model)
Parameters
| Type |
Name |
Description |
| GridModel |
model |
The grid model to be attached.
|
See BeginInit() in the GridModel class for information.
Declaration
Suspends the painting of associated grid controls until the EndUpdate method is called and records a command description
why painting is suspended.
Declaration
public void BeginUpdate(BeginUpdateOptions options, string commandDesc)
Parameters
| Type |
Name |
Description |
| BeginUpdateOptions |
options |
Specifies the painting support during the BeginUpdate, EndUpdate batch.
|
| System.String |
commandDesc |
A description of the command.
|
Declaration
public override void BeginUpdateModel(BeginUpdateOptions options, bool fromModel)
Parameters
Overrides
Declaration
public Size CalculatePreferredCellSize(Graphics g, int rowIndex, int colIndex, GridQueryBounds queryBounds)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
g |
|
| System.Int32 |
rowIndex |
|
| System.Int32 |
colIndex |
|
| GridQueryBounds |
queryBounds |
|
Returns
Declaration
public Size CalculatePreferredCellSize(Graphics g, int rowIndex, int colIndex, GridStyleInfo style, GridQueryBounds queryBounds)
Parameters
Returns
Checks if a range of cells is selected or if the grid has a current cell which contents can be cleared.
Declaration
public bool CanClearSelection()
Returns
| Type |
Description |
| System.Boolean |
True if clearing cells with Clear(Boolean) is possible; False otherwise.
|
Declaration
public bool ChangeCells(GridRangeInfo range, GridStyleInfo cellInfo)
Parameters
Returns
This example shows how to change the cell values with the specified style and range.
// Defining the new cell styles.
GridStyleInfo newStyle = new GridStyleInfo();
newStyle.CellType = GridCellTypeName.ComboBox;
// Setting the styles of range of cells to new style.
this.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle);
' Defining the new cell styles.
Dim newStyle As GridStyleInfo = New GridStyleInfo
newStyle.CellType = GridCellTypeName.ComboBox
// Setting the styles of range of cells to new style.
Me.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle)
Declaration
public bool ChangeCells(GridRangeInfo range, GridStyleInfo cellInfo, StyleModifyType modifyType)
Parameters
Returns
This example shows how to change the cell values with the specified style and range.
// Defining the new cell styles.
GridStyleInfo newStyle = new GridStyleInfo();
newStyle.CellType = GridCellTypeName.ComboBox;
// Setting the styles of range of cells to new style.
this.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle, Syncfusion.Styles.StyleModifyType.Changes);
Dim newStyle As GridStyleInfo = New GridStyleInfo
newStyle.CellType = GridCellTypeName.ComboBox
' Setting the styles of range of cells to new style.
Me.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle, Syncfusion.Styles.StyleModifyType.Changes)
Declaration
public bool ChangeCells(GridRangeInfo range, GridStyleInfo[] cellsInfo)
Parameters
Returns
This example shows how to change the cell values with the specified range and array of specific style values.
// Defining the new cell styles.
GridStyleInfo newStyle = new GridStyleInfo();
newStyle.CellType = GridCellTypeName.ComboBox;
// Setting the styles of range of cells to new style.
this.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle, Syncfusion.Styles.StyleModifyType.Changes);
' Defining the new cell styles.
Dim newStyle As GridStyleInfo = New GridStyleInfo
newStyle.CellType = GridCellTypeName.ComboBox
' Setting the styles of range of cells to new style.
Me.gridControl1.ChangeCells(GridRangeInfo.Rows(1, 2), newStyle, Syncfusion.Styles.StyleModifyType.Changes)
Declaration
public bool ChangeCells(GridRangeInfo range, GridStyleInfo[] cellsInfo, StyleModifyType modifyType)
Parameters
Returns
This example shows how to use CoveredRanges property.
GridStyleInfo style1 = new GridStyleInfo();
style1.TextColor = Color.Blue;
GridStyleInfo style2 = new GridStyleInfo();
style2.BackColor = Color.Red;
GridStyleInfo[] styles = new GridStyleInfo[] { style1, style2 };
GridRangeInfo range = GridRangeInfo.Rows(1,2);
this.gridControl1.ChangeCells(range, styles, Syncfusion.Styles.StyleModifyType.Remove);
Dim style1 As GridStyleInfo = New GridStyleInfo
style1.TextColor = Color.Blue
Dim style2 As GridStyleInfo = New GridStyleInfo
style2.BackColor = Color.Red
Dim styles() As GridStyleInfo = New GridStyleInfo() {style1, style2}
Dim range As GridRangeInfo = GridRangeInfo.Rows(1, 2)
Me.gridControl1.ChangeCells(range, styles, Syncfusion.Styles.StyleModifyType.Remove)
Declaration
public bool ChangeCells(GridRangeInfo range, string textValue)
Parameters
| Type |
Name |
Description |
| GridRangeInfo |
range |
|
| System.String |
textValue |
|
Returns
This example shows how to change the cell values with the specified text and range.
// The target range to set the text.
GridRangeInfo range = GridRangeInfo.Cols(1, 2);
//Setting the "SampleData" text to target range.
this.gridControl1.ChangeCells(range, "SampleData");
' The target range to set the text.
Dim range As GridRangeInfo = GridRangeInfo.Cols(1, 2)
'Setting the "SampleData" text to target range.
Me.gridControl1.ChangeCells(range, "SampleData")
Records current selection state - current cell and selected ranges. Will be used for restoring selections when performing undo / redo,
Declaration
public void ChangeSelectionState(int currentRow, int currentCol, GridRangeInfo[] ranges)
Parameters
| Type |
Name |
Description |
| System.Int32 |
currentRow |
The row index of current cell.
|
| System.Int32 |
currentCol |
The column index of current cell.
|
| GridRangeInfo[] |
ranges |
The current list of selected ranges.
|
Declaration
public bool Clear(bool styleOrValue)
Parameters
| Type |
Name |
Description |
| System.Boolean |
styleOrValue |
|
Returns
Declaration
public bool ClearCells(GridRangeInfo range, bool bStyleOrValue)
Parameters
| Type |
Name |
Description |
| GridRangeInfo |
range |
|
| System.Boolean |
bStyleOrValue |
|
Returns
Declaration
public bool ClearCells(GridRangeInfoList selList, bool styleOrValue)
Parameters
Returns
Declaration
public void ConfirmChanges()
Declaration
public bool ConfirmPendingChanges()
Returns
| Type |
Description |
| System.Boolean |
True if this action is successfully completed; False otherwise.
|
Detaches a model from the grid control.
Declaration
public GridModel Detach()
Returns
Declaration
public void DoPrepareGraphics(Graphics g)
Parameters
| Type |
Name |
Description |
| System.Drawing.Graphics |
g |
Graphics object.
|
See EndEdit() in the GridModel class for information.
Declaration
See EndInit() in the GridModel class for information.
Declaration
See EndUpdate() in the GridModel class for information.
Declaration
public override void EndUpdateModel(bool update, bool fromModel)
Parameters
| Type |
Name |
Description |
| System.Boolean |
update |
Specifies whether current pending paint operations should be discarded.
|
| System.Boolean |
fromModel |
Specified if this EndUpdate call was triggered by a call to the EndUpdate()
of the GridModel
|
Overrides
Declaration
public GridStyleInfoStoreTable GetCells(GridRangeInfo range)
Parameters
Returns
Declaration
public GridStyleInfo[] GetCellsInfo(GridRangeInfo range)
Parameters
Returns
Declaration
public GridStyleInfo[] GetCellsInfo(GridRangeInfo range, OperationFeedback op)
Parameters
Returns
Declaration
public GridStyleInfo GetCombinedStyle(GridRangeInfo range)
Parameters
Returns
Declaration
public GridStyleInfo GetCombinedStyle(GridRangeInfoList ranges)
Parameters
Returns
Declaration
public virtual bool GetSpannedRangeInfo(int rowIndex, int colIndex, out GridRangeInfo range)
Parameters
| Type |
Name |
Description |
| System.Int32 |
rowIndex |
|
| System.Int32 |
colIndex |
|
| GridRangeInfo |
range |
|
Returns
Recreates the GridControl with properties and data that was saved in xml format.
Declaration
public void InitializeFromXml(Stream s)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
s |
|
Recreates the GridControl with properties and data that was saved in xml format.
Declaration
public void InitializeFromXml(Stream s, bool resolveBackgroundImages)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
s |
|
| System.Boolean |
resolveBackgroundImages |
|
Recreates the GridControl with properties and data that was saved in xml format.
Declaration
public void InitializeFromXml(string fileName)
Parameters
| Type |
Name |
Description |
| System.String |
fileName |
|
Recreates the GridControl with properties and data that was saved in xml format.
Declaration
public void InitializeFromXml(string fileName, bool resolveBackgroundImages)
Parameters
| Type |
Name |
Description |
| System.String |
fileName |
|
| System.Boolean |
resolveBackgroundImages |
|
Declaration
protected virtual void OnBanneredRangesChanged(GridBanneredRangesChangedEventArgs e)
Parameters
Declaration
protected virtual void OnBanneredRangesChanging(GridBanneredRangesChangingEventArgs e)
Parameters
Declaration
protected virtual void OnBaseStylesMapChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnBeginUpdateRequest(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnCellModelsChanged(CollectionChangeEventArgs e)
Parameters
| Type |
Name |
Description |
| System.ComponentModel.CollectionChangeEventArgs |
e |
A System.ComponentModel.CollectionChangeEventArgs that contains the event data.
|
Declaration
protected virtual void OnCellsChanged(GridCellsChangedEventArgs e)
Parameters
Declaration
protected virtual void OnCellsChanging(GridCellsChangingEventArgs e)
Parameters
Declaration
protected virtual void OnColsHidden(GridRowColHiddenEventArgs e)
Parameters
Declaration
protected virtual void OnColsHiding(GridRowColHidingEventArgs e)
Parameters
Declaration
protected virtual void OnColsInserted(GridRangeInsertedEventArgs e)
Parameters
Declaration
protected virtual void OnColsInserting(GridRangeInsertingEventArgs e)
Parameters
Declaration
protected virtual void OnColsMoved(GridRangeMovedEventArgs e)
Parameters
Declaration
protected virtual void OnColsMoving(GridRangeMovingEventArgs e)
Parameters
Declaration
protected virtual void OnColsRemoved(GridRangeRemovedEventArgs e)
Parameters
Declaration
protected virtual void OnColsRemoving(GridRangeRemovingEventArgs e)
Parameters
Declaration
protected virtual void OnColWidthsChanged(GridRowColSizeChangedEventArgs e)
Parameters
Declaration
protected virtual void OnColWidthsChanging(GridRowColSizeChangingEventArgs e)
Parameters
Declaration
protected virtual void OnConfirmingPendingChanges(CancelEventArgs e)
Parameters
| Type |
Name |
Description |
| System.ComponentModel.CancelEventArgs |
e |
A System.ComponentModel.CancelEventArgs that contains the event data.
|
Declaration
protected virtual void OnControllerOptionsChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnCoveredRangesChanged(GridCoveredRangesChangedEventArgs e)
Parameters
Declaration
protected virtual void OnCoveredRangesChanging(GridCoveredRangesChangingEventArgs e)
Parameters
Declaration
protected virtual void OnDataChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnDataObjectConsumerOptionsChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnDefaultColWidthChanged(GridDefaultSizeChangedEventArgs e)
Parameters
Declaration
protected virtual void OnDefaultColWidthChanging(GridDefaultSizeChangingEventArgs e)
Parameters
Declaration
protected virtual void OnDefaultRowHeightChanged(GridDefaultSizeChangedEventArgs e)
Parameters
Declaration
protected virtual void OnDefaultRowHeightChanging(GridDefaultSizeChangingEventArgs e)
Parameters
Declaration
protected virtual void OnEndUpdateRequest(GridEndUpdateRequestEventArgs e)
Parameters
Declaration
protected virtual void OnFileNameChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
public virtual void OnFilterBarChoices(GridFilterBarChoicesEventArgs e)
Parameters
Declaration
public virtual void OnFilterBarSelectionChanging(FilterBarSelectionChangingEventArgs e)
Parameters
Declaration
public virtual void OnFilterBarSelectionItemChanged(FilterBarSelectionChangedEventArgs e)
Parameters
Declaration
protected virtual void OnFloatingCellsChanged(GridFloatingCellsChangedEventArgs e)
Parameters
Used to change the default behaviour of the FontChanged event
Declaration
protected override void OnFontChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
provides the value to use for events
|
Declaration
protected virtual void OnFrozenColCountChanged(GridCountChangedEventArgs e)
Parameters
Declaration
protected virtual void OnFrozenColCountChanging(GridCountChangingEventArgs e)
Parameters
Declaration
protected virtual void OnFrozenRowCountChanged(GridCountChangedEventArgs e)
Parameters
Declaration
protected virtual void OnFrozenRowCountChanging(GridCountChangingEventArgs e)
Parameters
Declaration
protected override void OnGiveFeedback(GiveFeedbackEventArgs gfbevent)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.GiveFeedbackEventArgs |
gfbevent |
|
Declaration
protected virtual void OnHeaderColCountChanged(GridCountChangedEventArgs e)
Parameters
Declaration
protected virtual void OnHeaderColCountChanging(GridCountChangingEventArgs e)
Parameters
Declaration
protected virtual void OnHeaderRowCountChanged(GridCountChangedEventArgs e)
Parameters
Declaration
protected virtual void OnHeaderRowCountChanging(GridCountChangingEventArgs e)
Parameters
Raises the event the location for the control is changed
Declaration
protected override void OnLocationChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
event arguments
|
Overrides
Declaration
protected virtual void OnMergeCellsChanged(GridMergeCellsChangedEventArgs e)
Parameters
Declaration
protected virtual void OnModifiedChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnOperationFeedback(OperationFeedbackEventArgs e)
Parameters
OnPasteCellText(GridPasteCellTextEventArgs)
Declaration
protected virtual void OnPasteCellText(GridPasteCellTextEventArgs e)
Parameters
Declaration
protected virtual void OnPrepareChangeSelection(GridPrepareChangeSelectionEventArgs e)
Parameters
Declaration
protected virtual void OnPrepareClearSelection(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnPrepareGraphics(GraphicsEventArgs e)
Parameters
Declaration
protected virtual void OnQueryBanneredRange(GridQueryBanneredRangeEventArgs e)
Parameters
Declaration
protected virtual void OnQueryCanMergeCells(GridQueryCanMergeCellsEventArgs e)
Parameters
Declaration
protected virtual void OnQueryCellInfo(GridQueryCellInfoEventArgs e)
Parameters
Declaration
protected virtual void OnQueryCellModel(GridQueryCellModelEventArgs e)
Parameters
Declaration
protected virtual void OnQueryColCount(GridRowColCountEventArgs e)
Parameters
Declaration
protected virtual void OnQueryColWidth(GridRowColSizeEventArgs e)
Parameters
Declaration
protected virtual void OnQueryCoveredRange(GridQueryCoveredRangeEventArgs e)
Parameters
Raises the Syncfusion.Windows.Forms.Grid.GridControl.QueryHideCol event.
Declaration
protected virtual void OnQueryHideCol(GridRowColHideEventArgs e)
Parameters
Raises the Syncfusion.Windows.Forms.Grid.GridControl.QueryHideRow event.
Declaration
protected virtual void OnQueryHideRow(GridRowColHideEventArgs e)
Parameters
Declaration
protected virtual void OnQueryRowCount(GridRowColCountEventArgs e)
Parameters
Declaration
protected virtual void OnQueryRowHeight(GridRowColSizeEventArgs e)
Parameters
Declaration
protected virtual void OnReadOnlyChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnRefreshRequest(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
A System.EventArgs that contains the event data.
|
Declaration
protected virtual void OnRowHeightsChanged(GridRowColSizeChangedEventArgs e)
Parameters
Declaration
protected virtual void OnRowHeightsChanging(GridRowColSizeChangingEventArgs e)
Parameters
Declaration
protected virtual void OnRowsHidden(GridRowColHiddenEventArgs e)
Parameters
Declaration
protected virtual void OnRowsHiding(GridRowColHidingEventArgs e)
Parameters
Declaration
protected virtual void OnRowsInserted(GridRangeInsertedEventArgs e)
Parameters
Declaration
protected virtual void OnRowsInserting(GridRangeInsertingEventArgs e)
Parameters
Declaration
protected virtual void OnRowsMoved(GridRangeMovedEventArgs e)
Parameters
Declaration
protected virtual void OnRowsMoving(GridRangeMovingEventArgs e)
Parameters
Declaration
protected virtual void OnRowsRemoved(GridRangeRemovedEventArgs e)
Parameters
Declaration
protected virtual void OnRowsRemoving(GridRangeRemovingEventArgs e)
Parameters
Declaration
protected virtual void OnSaveCellInfo(GridSaveCellInfoEventArgs e)
Parameters
Declaration
protected virtual void OnSaveColCount(GridRowColCountEventArgs e)
Parameters
Declaration
protected virtual void OnSaveColWidth(GridRowColSizeEventArgs e)
Parameters
Raises the Syncfusion.Windows.Forms.Grid.GridControl.SaveHideCol event.
Declaration
protected virtual void OnSaveHideCol(GridRowColHideEventArgs e)
Parameters
Raises the Syncfusion.Windows.Forms.Grid.GridControl.SaveHideRow event.
Declaration
protected virtual void OnSaveHideRow(GridRowColHideEventArgs e)
Parameters
Declaration
protected virtual void OnSaveRowCount(GridRowColCountEventArgs e)
Parameters
Declaration
protected virtual void OnSaveRowHeight(GridRowColSizeEventArgs e)
Parameters
Declaration
protected virtual void OnSelectionChanged(GridSelectionChangedEventArgs e)
Parameters
Declaration
protected virtual void OnSelectionChanging(GridSelectionChangingEventArgs e)
Parameters
Used to change the default behaviour of the SizeChanged event
Declaration
protected override void OnSizeChanged(EventArgs e)
Parameters
| Type |
Name |
Description |
| System.EventArgs |
e |
provides the value to use for events
|
Overrides
Handles the Resize,Selection,Dragging or the panning operations based on the touch controller.
Declaration
protected override bool OnTouchPan(Point currentTouchPoint, bool isSwipeScroll)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
currentTouchPoint |
Current touch position
|
| System.Boolean |
isSwipeScroll |
used to decide the swipe scrolling operation occurs. When isSwipeScroll is true then cancel the panning operations while touch over the header cell.
|
Returns
| Type |
Description |
| System.Boolean |
Retruns false if do the resize, dragging and selection process. Otherwise return true
|
Overrides
Used to decide to do the selection or dragging or resizing operations based on touchController.
Declaration
protected override bool OnTouchPanBegin(Point touchBeginPoint)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
touchBeginPoint |
touch position when panning operation start
|
Returns
| Type |
Description |
| System.Boolean |
return false when do other operations like selection, dragging and resizing
|
Overrides
Call the mouse up method when resize or dragging or selection process done otherwise call the base method
Declaration
protected override bool OnTouchPanEnd(Point touchEndPoint)
Parameters
| Type |
Name |
Description |
| System.Drawing.Point |
touchEndPoint |
touch control end point
|
Returns
| Type |
Description |
| System.Boolean |
Return false when resizing or selection or dragging process done
|
Overrides
Declaration
public void PopulateHeaders(GridRangeInfo range, object dataSource)
Parameters
| Type |
Name |
Description |
| GridRangeInfo |
range |
|
| System.Object |
dataSource |
|
This example shows how to populate the header values with the specified range and datasource. PopulateHeaders(GridRangeInfo, Object) method.
// Populating DataSource
DataTable dataTable = new DataTable("Sample");
dataTable.Columns.Add("Column 1");
dataTable.Columns.Add("Column 2");
dataTable.Columns.Add("Column 3");
dataTable.Columns.Add("Column 4");
dataTable.Rows.Add("Row1", "Row2", "Row3", "Row4");
//Populating the headers
this.gridControl1.PopulateHeaders(GridRangeInfo.Cells(0, 1, 0, 4), dataTable);
' Populating DataSource
Dim dataTable As DataTable = New DataTable("Sample")
dataTable.Columns.Add("Column 1")
dataTable.Columns.Add("Column 2")
dataTable.Columns.Add("Column 3")
dataTable.Columns.Add("Column 4")
dataTable.Rows.Add("Row1", "Row2", "Row3", "Row4")
' Populating the headers
Me.gridControl1.PopulateHeaders(GridRangeInfo.Cells(0, 1, 0, 4), dataTable)
Declaration
public void PopulateValues(GridRangeInfo range, object dataSource)
Parameters
| Type |
Name |
Description |
| GridRangeInfo |
range |
|
| System.Object |
dataSource |
|
This example shows how to populate the values to the grid with the specified range and datasource.
// Populating DataSource
DataTable dataTable = new DataTable("Sample");
dataTable.Columns.Add("Column 1");
dataTable.Columns.Add("Column 2");
dataTable.Columns.Add("Column 3");
dataTable.Columns.Add("Column 4");
dataTable.Rows.Add("Row1", "Row2", "Row3", "Row4");
Populating the values to grid.
this.gridControl1.PopulateValues(GridRangeInfo.Cells(1, 1, dataTable.Rows.Count, dataTable.Columns.Count), dataTable);
' Populating DataSource
Dim dataTable As DataTable = New DataTable("Sample")
dataTable.Columns.Add("Column 1")
dataTable.Columns.Add("Column 2")
dataTable.Columns.Add("Column 3")
dataTable.Columns.Add("Column 4")
dataTable.Rows.Add("Row1", "Row2", "Row3", "Row4")
'Populating the values to grid.
this.gridControl1.PopulateValues(GridRangeInfo.Cells(1, 1, dataTable.Rows.Count, dataTable.Columns.Count), dataTable)
Declaration
public void QueryMaximumRowCol(int nLastRow, int nLastCol)
Parameters
| Type |
Name |
Description |
| System.Int32 |
nLastRow |
|
| System.Int32 |
nLastCol |
|
See Refresh() in the GridModel class for information.
Declaration
protected override void Refresh(bool fromModel)
Parameters
| Type |
Name |
Description |
| System.Boolean |
fromModel |
|
Overrides
Declaration
public void remove_BanneredRangesChanged(GridBanneredRangesChangedEventHandler value)
Parameters
Declaration
public void remove_BanneredRangesChanging(GridBanneredRangesChangingEventHandler value)
Parameters
Declaration
public void remove_CellsChanged(GridCellsChangedEventHandler value)
Parameters
Declaration
public void remove_CellsChanging(GridCellsChangingEventHandler value)
Parameters
Declaration
public void remove_ClearingCells(GridClearingCellsEventHandler value)
Parameters
Declaration
public void remove_ClipboardCanCopy(GridCutPasteEventHandler value)
Parameters
Declaration
public void remove_ClipboardCanCut(GridCutPasteEventHandler value)
Parameters
Declaration
public void remove_ClipboardCanPaste(GridCutPasteEventHandler value)
Parameters
Declaration
public void remove_ClipboardCopy(GridCutPasteEventHandler value)
Parameters
Declaration
public void remove_ClipboardCopyToBuffer(ClipboardCopyToBufferEventHandler value)
Parameters
Declaration
public void remove_ClipboardCut(GridCutPasteEventHandler value)
Parameters
Declaration
public void remove_ClipboardPaste(GridCutPasteEventHandler value)
Parameters
Declaration
public void remove_ColsHidden(GridRowColHiddenEventHandler value)
Parameters
Declaration
public void remove_ColsHiding(GridRowColHidingEventHandler value)
Parameters
Declaration
public void remove_ColsInserted(GridRangeInsertedEventHandler value)
Parameters
Declaration
public void remove_ColsInserting(GridRangeInsertingEventHandler value)
Parameters
Declaration
public void remove_ColsMoved(GridRangeMovedEventHandler value)
Parameters
Declaration
public void remove_ColsMoving(GridRangeMovingEventHandler value)
Parameters
Declaration
public void remove_ColsRemoved(GridRangeRemovedEventHandler value)
Parameters
Declaration
public void remove_ColsRemoving(GridRangeRemovingEventHandler value)
Parameters
Declaration
public void remove_ColWidthsChanged(GridRowColSizeChangedEventHandler value)
Parameters
Declaration
public void remove_ColWidthsChanging(GridRowColSizeChangingEventHandler value)
Parameters
Declaration
public void remove_CoveredRangesChanged(GridCoveredRangesChangedEventHandler value)
Parameters
Declaration
public void remove_CoveredRangesChanging(GridCoveredRangesChangingEventHandler value)
Parameters
Declaration
public void remove_DefaultColWidthChanged(GridDefaultSizeChangedEventHandler value)
Parameters
Declaration
public void remove_DefaultColWidthChanging(GridDefaultSizeChangingEventHandler value)
Parameters
Declaration
public void remove_DefaultRowHeightChanged(GridDefaultSizeChangedEventHandler value)
Parameters
Declaration
public void remove_DefaultRowHeightChanging(GridDefaultSizeChangingEventHandler value)
Parameters
Declaration
public void remove_EndUpdateRequest(GridEndUpdateRequestEventHandler value)
Parameters
Declaration
public void remove_FilterBarChoices(GridFilterBarChoicesEventHandler value)
Parameters
Declaration
public void remove_FilterBarSelectionChanged(FilterBarSelectionChangedEventHandler value)
Parameters
Declaration
public void remove_FilterBarSelectionChanging(FilterBarSelectionChangingEventHandler value)
Parameters
Declaration
public void remove_FloatingCellsChanged(GridFloatingCellsChangedEventHandler value)
Parameters
Declaration
public void remove_FrozenColCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void remove_FrozenColCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void remove_FrozenRowCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void remove_FrozenRowCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void remove_HeaderColCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void remove_HeaderColCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void remove_HeaderRowCountChanged(GridCountChangedEventHandler value)
Parameters
Declaration
public void remove_HeaderRowCountChanging(GridCountChangingEventHandler value)
Parameters
Declaration
public void remove_MergeCellsChanged(GridMergeCellsChangedEventHandler value)
Parameters
Declaration
public void remove_OperationFeedback(OperationFeedbackEventHandler value)
Parameters
remove_ParseCommonFormats(GridCellTextEventHandler)
Declaration
public void remove_ParseCommonFormats(GridCellTextEventHandler value)
Parameters
remove_PasteCellText(GridPasteCellTextEventHandler)
Declaration
public void remove_PasteCellText(GridPasteCellTextEventHandler value)
Parameters
Declaration
public void remove_PrepareChangeSelection(GridPrepareChangeSelectionEventHandler value)
Parameters
Declaration
public void remove_PrepareGraphics(GraphicsEventHandler value)
Parameters
Declaration
public void remove_QueryBanneredRange(GridQueryBanneredRangeEventHandler value)
Parameters
Declaration
public void remove_QueryCanMergeCells(GridQueryCanMergeCellsEventHandler value)
Parameters
remove_QueryCellFormattedText(GridCellTextEventHandler)
Declaration
public void remove_QueryCellFormattedText(GridCellTextEventHandler value)
Parameters
Declaration
public void remove_QueryCellInfo(GridQueryCellInfoEventHandler value)
Parameters
Declaration
public void remove_QueryCellModel(GridQueryCellModelEventHandler value)
Parameters
remove_QueryCellText(GridCellTextEventHandler)
Declaration
public void remove_QueryCellText(GridCellTextEventHandler value)
Parameters
Declaration
public void remove_QueryColCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void remove_QueryColWidth(GridRowColSizeEventHandler value)
Parameters
Declaration
public void remove_QueryCoveredRange(GridQueryCoveredRangeEventHandler value)
Parameters
Declaration
public void remove_QueryOleDataSourceData(GridQueryOleDataSourceDataEventHandler value)
Parameters
Declaration
public void remove_QueryRowCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void remove_QueryRowHeight(GridRowColSizeEventHandler value)
Parameters
Declaration
public void remove_RowHeightsChanged(GridRowColSizeChangedEventHandler value)
Parameters
Declaration
public void remove_RowHeightsChanging(GridRowColSizeChangingEventHandler value)
Parameters
Declaration
public void remove_RowsHidden(GridRowColHiddenEventHandler value)
Parameters
Declaration
public void remove_RowsHiding(GridRowColHidingEventHandler value)
Parameters
Declaration
public void remove_RowsInserted(GridRangeInsertedEventHandler value)
Parameters
Declaration
public void remove_RowsInserting(GridRangeInsertingEventHandler value)
Parameters
Declaration
public void remove_RowsMoved(GridRangeMovedEventHandler value)
Parameters
Declaration
public void remove_RowsMoving(GridRangeMovingEventHandler value)
Parameters
Declaration
public void remove_RowsRemoved(GridRangeRemovedEventHandler value)
Parameters
Declaration
public void remove_RowsRemoving(GridRangeRemovingEventHandler value)
Parameters
remove_SaveCellFormattedText(GridCellTextEventHandler)
Declaration
public void remove_SaveCellFormattedText(GridCellTextEventHandler value)
Parameters
Declaration
public void remove_SaveCellInfo(GridSaveCellInfoEventHandler value)
Parameters
remove_SaveCellText(GridCellTextEventHandler)
Declaration
public void remove_SaveCellText(GridCellTextEventHandler value)
Parameters
Declaration
public void remove_SaveColCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void remove_SaveColWidth(GridRowColSizeEventHandler value)
Parameters
Declaration
public void remove_SaveRowCount(GridRowColCountEventHandler value)
Parameters
Declaration
public void remove_SaveRowHeight(GridRowColSizeEventHandler value)
Parameters
Declaration
public void remove_SelectionChanged(GridSelectionChangedEventHandler value)
Parameters
Declaration
public void remove_SelectionChanging(GridSelectionChangingEventHandler value)
Parameters
Declaration
public void ResetAlphaBlendSelectionColor()
Clears all bannered ranges.
Declaration
public void ResetBanneredRanges()
Declaration
public void ResetBaseStylesMap()
Resets values in the HideCols collection.
Declaration
public void ResetColHiddenEntries()
Declaration
public void ResetColWidthEntries()
Declaration
public void ResetCoveredRanges()
Declaration
public void ResetCurrentCellInfo()
Clears all cell formatting.
Declaration
public void ResetGridCells()
Clears all cell formatting in the GridData object.
Declaration
public void ResetRangeStyles()
Declaration
public void ResetRowHeightEntries()
Resets values in the HideRows collection.
Declaration
public void ResetRowHiddenEntries()
Declaration
public void ResetTableStyle()
Declaration
public void ResetVolatileData()
Declaration
public void ResumeChangeEvents()
Declaration
public void ResumeRecordUndo()
Saves the current GridModel object to a file in xml format. The filename can be specified with FileName.
Declaration
Saves the current GridModel object to a stream in xml format.
Declaration
public void SaveXml(Stream s)
Parameters
| Type |
Name |
Description |
| System.IO.Stream |
s |
|
Saves the current GridModel object in xml format to a file with the specified filename.
Declaration
public void SaveXml(string fileName)
Parameters
| Type |
Name |
Description |
| System.String |
fileName |
|
Declaration
public bool SetCellInfo(int rowIndex, int colIndex, GridStyleInfo style, StyleModifyType modifyType)
Parameters
Returns
Declaration
public bool SetCellInfo(int rowIndex, int colIndex, GridStyleInfo style, StyleModifyType modifyType, bool dontRaiseSaveCellInfoEvent, bool copyReferenceOnly)
Parameters
| Type |
Name |
Description |
| System.Int32 |
rowIndex |
|
| System.Int32 |
colIndex |
|
| GridStyleInfo |
style |
|
| StyleModifyType |
modifyType |
|
| System.Boolean |
dontRaiseSaveCellInfoEvent |
|
| System.Boolean |
copyReferenceOnly |
|
Returns
Declaration
public void SetCells(GridRangeInfo range, GridStyleInfoStoreTable data)
Parameters
Declaration
public void SetCells(GridRangeInfo range, GridStyleInfoStoreTable data, bool dontRaiseSaveCellInfoEvent, bool copyReferenceOnly)
Parameters
set the color for metro theme in Grid
Declaration
public void SetMetroStyle(GridMetroColors metroColors)
Parameters
Sets the Custom metro colors to the Grid.
Declaration
public void SetMetroStyle(object metroColor, object metroHoverColor, object metroColorPressed)
Parameters
| Type |
Name |
Description |
| System.Object |
metroColor |
Custom Metro Color
|
| System.Object |
metroHoverColor |
Custom MouseHover Color
|
| System.Object |
metroColorPressed |
Custom PushButtonPress Color
|
Sets the custom colors for the Office2016 themes.
Declaration
public void SetOffice2016ThemeStyle(GridVisualStyles visualSyle, GridOffice2016ThemeColors office2016Colors)
Parameters
Determines if values in the HideCols collection were modified.
Declaration
public bool ShouldSerializeColHiddenEntries()
Returns
| Type |
Description |
| System.Boolean |
true if modified; false otherwise.
|
Determines if values in the ColWidths collection were modified.
Declaration
public bool ShouldSerializeColWidthEntries()
Returns
| Type |
Description |
| System.Boolean |
True if modified; False otherwise.
|
Declaration
public bool ShouldSerializeGridCells()
Returns
| Type |
Description |
| System.Boolean |
returns True if SerializeCellsBehavior is set to SerializeIntoCode, otherwise false.
|
Determines if the range styles should be serialized.
Declaration
public bool ShouldSerializeRangeStyles()
Returns
| Type |
Description |
| System.Boolean |
True if they should be serialized; False otherwise.
|
Determines if values in the RowHeights collection were modified.
Declaration
public bool ShouldSerializeRowHeightEntries()
Returns
| Type |
Description |
| System.Boolean |
True if modified; False otherwise.
|
Determines if values in the HideRows collection were modified.
Declaration
public bool ShouldSerializeRowHiddenEntries()
Returns
| Type |
Description |
| System.Boolean |
True if modified; False otherwise.
|
Declaration
public GridMargins StyleInfoBordersToMargins(GridStyleInfo style)
Parameters
Returns
Declaration
public Rectangle SubtractBorders(Rectangle cellBounds, GridStyleInfo style)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
cellBounds |
|
| GridStyleInfo |
style |
|
Returns
| Type |
| System.Drawing.Rectangle |
Declaration
public Rectangle SubtractBorders(Rectangle cellBounds, GridStyleInfo style, bool isRightToLeft)
Parameters
| Type |
Name |
Description |
| System.Drawing.Rectangle |
cellBounds |
|
| GridStyleInfo |
style |
|
| System.Boolean |
isRightToLeft |
|
Returns
| Type |
| System.Drawing.Rectangle |
Declaration
public void SuspendChangeEvents()
Declaration
public void SuspendRecordUndo()
Declaration
public void SynchronizeCurrentCell(int rowIndex, int colIndex)
Parameters
| Type |
Name |
Description |
| System.Int32 |
rowIndex |
|
| System.Int32 |
colIndex |
|
Declaration
protected override void UnwireModel()
Overrides
Recalculates the Column width of the Grid Control.
Declaration
public void UpdateColWidth()
Declaration
protected override void WireModel()
Overrides
Used to modify the windows processing messages.
Declaration
protected override void WndProc(ref Message msg)
Parameters
| Type |
Name |
Description |
| System.Windows.Forms.Message |
msg |
The System.Windows.Forms.Messagepassed form windows.
|
Overrides
Events
Declaration
public event GridBanneredRangesChangedEventHandler BanneredRangesChanged
Event Type
Declaration
public event GridBanneredRangesChangingEventHandler BanneredRangesChanging
Event Type
Declaration
public event EventHandler BaseStylesMapChanged
Event Type
Declaration
public event EventHandler BeginUpdateRequest
Event Type
Declaration
public event CollectionChangeEventHandler CellModelsChanged
Event Type
| Type |
| System.ComponentModel.CollectionChangeEventHandler |
Declaration
public event GridCellsChangedEventHandler CellsChanged
Event Type
Declaration
public event GridCellsChangingEventHandler CellsChanging
Event Type
Occurs when the grid's ClearCells method is called.
Declaration
public event GridClearingCellsEventHandler ClearingCells
Event Type
Occurs when the grid's CanCopy method is called.
Declaration
public event GridCutPasteEventHandler ClipboardCanCopy
Event Type
Occurs when the grid's CanCut method is called.
Declaration
public event GridCutPasteEventHandler ClipboardCanCut
Event Type
Occurs when the grid's CanPaste method is called.
Declaration
public event GridCutPasteEventHandler ClipboardCanPaste
Event Type
Occurs when the grid's Copy method is called.
Declaration
public event GridCutPasteEventHandler ClipboardCopy
Event Type
Occurs when the grid's CopyToBuffer method is called.
Declaration
public event ClipboardCopyToBufferEventHandler ClipboardCopyToBuffer
Event Type
Occurs when the grid's Cut method is called.
Declaration
public event GridCutPasteEventHandler ClipboardCut
Event Type
Occurs when the grid's Paste method is called.
Declaration
public event GridCutPasteEventHandler ClipboardPaste
Event Type
See ColsHidden in the GridModel class for information.
Declaration
public event GridRowColHiddenEventHandler ColsHidden
Event Type
See ColsHiding in the GridModel class for information.
Declaration
public event GridRowColHidingEventHandler ColsHiding
Event Type
Declaration
public event GridRangeInsertedEventHandler ColsInserted
Event Type
Declaration
public event GridRangeInsertingEventHandler ColsInserting
Event Type
See ColsMoved in the GridModel class for information.
Declaration
public event GridRangeMovedEventHandler ColsMoved
Event Type
See ColsMoving in the GridModel class for information.
Declaration
public event GridRangeMovingEventHandler ColsMoving
Event Type
See ColsRemoved in the GridModel class for information.
Declaration
public event GridRangeRemovedEventHandler ColsRemoved
Event Type
Declaration
public event GridRangeRemovingEventHandler ColsRemoving
Event Type
Declaration
public event GridRowColSizeChangedEventHandler ColWidthsChanged
Event Type
Declaration
public event GridRowColSizeChangingEventHandler ColWidthsChanging
Event Type
Declaration
public event CancelEventHandler ConfirmingPendingChanges
Event Type
| Type |
| System.ComponentModel.CancelEventHandler |
Declaration
public event EventHandler ControllerOptionsChanged
Event Type
Declaration
public event GridCoveredRangesChangedEventHandler CoveredRangesChanged
Event Type
Declaration
public event GridCoveredRangesChangingEventHandler CoveredRangesChanging
Event Type
See DataChanged in the GridModel class for information.
Declaration
public event EventHandler DataChanged
Event Type
Declaration
public event EventHandler DataObjectConsumerOptionsChanged
Event Type
Declaration
public event GridDefaultSizeChangedEventHandler DefaultColWidthChanged
Event Type
Declaration
public event GridDefaultSizeChangingEventHandler DefaultColWidthChanging
Event Type
Declaration
public event GridDefaultSizeChangedEventHandler DefaultRowHeightChanged
Event Type
Declaration
public event GridDefaultSizeChangingEventHandler DefaultRowHeightChanging
Event Type
Declaration
public event GridEndUpdateRequestEventHandler EndUpdateRequest
Event Type
Declaration
public event EventHandler FileNameChanged
Event Type
This event occurs when GridTableDescriptor is initializing columns with .AllowFilter set and gives
you the option to handle filterBar choices through custom code. In such case the event is also raised
when the user clicks on on dropdown button of a GridTableFilterBarCell.
Declaration
public event GridFilterBarChoicesEventHandler FilterBarChoices
Event Type
This event occurs after an item selected through the filtered dropdown.
Declaration
public event FilterBarSelectionChangedEventHandler FilterBarSelectionChanged
Event Type
This event occurs when an item selected through the filtered dropdown.
Declaration
public event FilterBarSelectionChangingEventHandler FilterBarSelectionChanging
Event Type
Declaration
public event GridFloatingCellsChangedEventHandler FloatingCellsChanged
Event Type
Declaration
public event GridCountChangedEventHandler FrozenColCountChanged
Event Type
Declaration
public event GridCountChangingEventHandler FrozenColCountChanging
Event Type
Declaration
public event GridCountChangedEventHandler FrozenRowCountChanged
Event Type
Declaration
public event GridCountChangingEventHandler FrozenRowCountChanging
Event Type
Declaration
public event GridCountChangedEventHandler HeaderColCountChanged
Event Type
Declaration
public event GridCountChangingEventHandler HeaderColCountChanging
Event Type
Declaration
public event GridCountChangedEventHandler HeaderRowCountChanged
Event Type
Declaration
public event GridCountChangingEventHandler HeaderRowCountChanging
Event Type
Occurs after floating state was changed for a range of cells.
Declaration
public event GridMergeCellsChangedEventHandler MergeCellsChanged
Event Type
Declaration
public event EventHandler ModifiedChanged
Event Type
Declaration
public event OperationFeedbackEventHandler OperationFeedback
Event Type
Handle this event to provide support for parsing the formatted string and convert it into the the underlying cell's value.
Declaration
public event GridCellTextEventHandler ParseCommonFormats
Event Type
PasteCellText
Declaration
public event GridPasteCellTextEventHandler PasteCellText
Event Type
Declaration
public event GridPrepareChangeSelectionEventHandler PrepareChangeSelection
Event Type
Declaration
public event EventHandler PrepareClearSelection
Event Type
Declaration
public event GraphicsEventHandler PrepareGraphics
Event Type
Declaration
public event GridQueryBanneredRangeEventHandler QueryBanneredRange
Event Type
Occurs when grid compares the contents of two cells to determine if they should be merged.
Declaration
public event GridQueryCanMergeCellsEventHandler QueryCanMergeCells
Event Type
QueryCellFormattedText
Occurs each time the GridStyleInfo.Text is called to get the string that represents the underlying cell's value.
Declaration
public event GridCellTextEventHandler QueryCellFormattedText
Event Type
Declaration
public event GridQueryCellInfoEventHandler QueryCellInfo
Event Type
Declaration
public event GridQueryCellModelEventHandler QueryCellModel
Event Type
QueryCellText
Occurs each time the GridStyleInfo.Text is called to get the string that represents the underlying cell's value.
Declaration
public event GridCellTextEventHandler QueryCellText
Event Type
Declaration
public event GridRowColCountEventHandler QueryColCount
Event Type
Declaration
public event GridRowColSizeEventHandler QueryColWidth
Event Type
Declaration
public event GridQueryCoveredRangeEventHandler QueryCoveredRange
Event Type
Occurs when a user starts dragging a range of selected cells using OLE drag-and-drop.
Declaration
public event GridQueryOleDataSourceDataEventHandler QueryOleDataSourceData
Event Type
Declaration
public event GridRowColCountEventHandler QueryRowCount
Event Type
Declaration
public event GridRowColSizeEventHandler QueryRowHeight
Event Type
Declaration
public event EventHandler ReadOnlyChanged
Event Type
Declaration
public event EventHandler RefreshRequest
Event Type
Declaration
public event GridRowColSizeChangedEventHandler RowHeightsChanged
Event Type
Declaration
public event GridRowColSizeChangingEventHandler RowHeightsChanging
Event Type
See RowsHidden in the GridModel class for information.
Declaration
public event GridRowColHiddenEventHandler RowsHidden
Event Type
See RowsHiding in the GridModel class for information.
Declaration
public event GridRowColHidingEventHandler RowsHiding
Event Type
Declaration
public event GridRangeInsertedEventHandler RowsInserted
Event Type
Declaration
public event GridRangeInsertingEventHandler RowsInserting
Event Type
See RowsMoved in the GridModel class for information.
Declaration
public event GridRangeMovedEventHandler RowsMoved
Event Type
See RowsMoving in the GridModel class for information.
Declaration
public event GridRangeMovingEventHandler RowsMoving
Event Type
See RowsRemoved in the GridModel class for information.
Declaration
public event GridRangeRemovedEventHandler RowsRemoved
Event Type
Declaration
public event GridRangeRemovingEventHandler RowsRemoving
Event Type
SaveCellFormattedText
Occurs each time the GridStyleInfo.FormattedText is called to set the raw string that represents the underlying cell's value.
Declaration
public event GridCellTextEventHandler SaveCellFormattedText
Event Type
Declaration
public event GridSaveCellInfoEventHandler SaveCellInfo
Event Type
SaveCellText
Occurs each time the GridStyleInfo.Text is called to set the raw string that represents the underlying cell's value.
Declaration
public event GridCellTextEventHandler SaveCellText
Event Type
Declaration
public event GridRowColCountEventHandler SaveColCount
Event Type
Declaration
public event GridRowColSizeEventHandler SaveColWidth
Event Type
Declaration
public event GridRowColCountEventHandler SaveRowCount
Event Type
Declaration
public event GridRowColSizeEventHandler SaveRowHeight
Event Type
Declaration
public event GridSelectionChangedEventHandler SelectionChanged
Event Type
Declaration
public event GridSelectionChangingEventHandler SelectionChanging
Event Type
Explicit Interface Implementations
Declaration
string IVisualStyle.VisualTheme { get; set; }
Returns
Implements
System.IDisposable
System.ComponentModel.ISupportInitialize