Export (0) Print
Expand All

DataGridView Members

Displays data in a customizable grid.

The DataGridView type exposes the following members.

  NameDescription
Public method DataGridView Initializes a new instance of the DataGridView class.
Top

  NameDescription
Protected method AccessibilityNotifyClients Overloaded. Notifies the accessibility client applications of AccessibleEvents.
Protected method AccessibilityNotifyCurrentCellChanged Notifies the accessible client applications when a new cell becomes the current cell.
Public method AdjustColumnHeaderBorderStyle Adjusts the DataGridViewAdvancedBorderStyle for a column header cell of a DataGridView that is currently being painted.
Public method AreAllCellsSelected Returns a value indicating whether all the DataGridView cells are currently selected.
Public method AutoResizeColumn Overloaded. Adjusts the width of the specified column to fit the contents of its cells.
Public method AutoResizeColumnHeadersHeight Overloaded. Adjusts the height of the column headers to fit the header contents.
Public method AutoResizeColumns Overloaded. Adjusts the width of all columns to fit the contents of their cells.
Public method AutoResizeRow Overloaded. Adjusts the height of the specified row to fit the contents of its cells.
Public method AutoResizeRowHeadersWidth Overloaded. Adjusts the width of the row headers to fit the header contents.
Public method AutoResizeRows Overloaded. Adjusts the heights of some or all rows to fit their contents.
Public method BeginEdit Puts the current cell in edit mode.
Public method BeginInvoke Overloaded. Executes a delegate asynchronously on the thread that the control's underlying handle was created on.
Public method BringToFront Brings the control to the front of the z-order. (Inherited from Control.)
Public method CancelEdit Cancels edit mode for the currently selected cell and discards any changes.
Public method ClearSelection Overloaded. Cancels the selection of currently selected cells.
Public method CommitEdit Commits changes in the current cell to the data cache without ending edit mode.
Public method Contains Retrieves a value indicating whether the specified control is a child of the control. (Inherited from Control.)
Protected method CreateAccessibilityInstance Creates a new accessible object for the DataGridView. (Overrides Control.CreateAccessibilityInstance().)
Protected method CreateColumnsInstance Creates and returns a new DataGridViewColumnCollection.
Public method CreateControl Forces the creation of the visible control, including the creation of the handle and any visible child controls. (Inherited from Control.)
Protected method CreateControlsInstance Creates and returns a new Control.ControlCollection that can be cast to type DataGridView.DataGridViewControlCollection. (Overrides Control.CreateControlsInstance().)
Public method CreateGraphics Creates the Graphics for the control. (Inherited from Control.)
Protected method CreateHandle Creates a handle for the control. (Inherited from Control.)
Public method CreateObjRef Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object. (Inherited from MarshalByRefObject.)
Protected method CreateRowsInstance Creates and returns a new DataGridViewRowCollection.
Protected method DefWndProc Sends the specified message to the default window procedure. (Inherited from Control.)
Protected method DestroyHandle Destroys the handle associated with the control. (Inherited from Control.)
Public method DisplayedColumnCount Returns the number of columns displayed to the user.
Public method DisplayedRowCount Returns the number of rows displayed to the user.
Public method Dispose Overloaded. Releases all resources used by the DataGridView control.
Public method DoDragDrop Begins a drag-and-drop operation. (Inherited from Control.)
Public method DrawToBitmap Supports rendering to the specified bitmap. (Inherited from Control.)
Public method EndEdit Overloaded. Commits and ends the edit operation on the current cell.
Public method EndInvoke Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed. (Inherited from Control.)
Public method Equals Determines whether the specified Object is equal to the current Object. (Inherited from Object.)
Protected method Finalize Releases unmanaged resources and performs other cleanup operations before the Component is reclaimed by garbage collection. (Inherited from Component.)
Public method FindForm Retrieves the form that the control is on. (Inherited from Control.)
Public method Focus Sets input focus to the control. (Inherited from Control.)
Protected method GetAccessibilityObjectById Retrieves the specified AccessibleObject. (Overrides Control.GetAccessibilityObjectById(Int32).)
Protected method GetAutoSizeMode Retrieves a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.)
Public method GetCellCount Gets the number of cells that satisfy the provided filter.
Public method GetCellDisplayRectangle Returns the rectangle that represents the display area for a cell.
Public method GetChildAtPoint Overloaded. Retrieves the child control at a specified location.
Public method GetClipboardContent Retrieves the formatted values that represent the contents of the selected cells for copying to the Clipboard.
Public method GetColumnDisplayRectangle Returns the rectangle that represents the display area for a column, as determined by the column index.
Public method GetContainerControl Returns the next ContainerControl up the control's chain of parent controls. (Inherited from Control.)
Public method GetHashCode Serves as a hash function for a particular type. (Inherited from Object.)
Public method GetLifetimeService Retrieves the current lifetime service object that controls the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Public method GetNextControl Retrieves the next control forward or back in the tab order of child controls. (Inherited from Control.)
Public method GetPreferredSize Retrieves the size of a rectangular area into which a control can be fitted. (Inherited from Control.)
Public method GetRowDisplayRectangle Returns the rectangle that represents the display area for a row, as determined by the row index.
Protected method GetScaledBounds Retrieves the bounds within which the control is scaled. (Inherited from Control.)
Protected method GetService Returns an object that represents a service provided by the Component or by its Container. (Inherited from Component.)
Protected method GetStyle Retrieves the value of the specified control style bit for the control. (Inherited from Control.)
Protected method GetTopLevel Determines if the control is a top-level control. (Inherited from Control.)
Public method GetType Gets the type of the current instance. (Inherited from Object.)
Public method Hide Conceals the control from the user. (Inherited from Control.)
Public method HitTest Returns location information, such as row and column indices, given x- and y-coordinates.
Public method InitializeLifetimeService Obtains a lifetime service object to control the lifetime policy for this instance. (Inherited from MarshalByRefObject.)
Protected method InitLayout Called after the control has been added to another container. (Inherited from Control.)
Public method Invalidate Overloaded. Invalidates a specific region of the control and causes a paint message to be sent to the control.
Public method InvalidateCell Overloaded. Invalidates a cell in the DataGridView, forcing it to be repainted.
Public method InvalidateColumn Invalidates the specified column of the DataGridView, forcing it to be repainted.
Public method InvalidateRow Invalidates the specified row of the DataGridView, forcing it to be repainted.
Public method Invoke Overloaded. Executes a delegate on the thread that owns the control's underlying window handle.
Protected method InvokeGotFocus Raises the GotFocus event for the specified control. (Inherited from Control.)
Protected method InvokeLostFocus Raises the LostFocus event for the specified control. (Inherited from Control.)
Protected method InvokeOnClick Raises the Click event for the specified control. (Inherited from Control.)
Protected method InvokePaint Raises the Paint event for the specified control. (Inherited from Control.)
Protected method InvokePaintBackground Raises the PaintBackground event for the specified control. (Inherited from Control.)
Protected method IsInputChar Determines whether a character is an input character that the DataGridView recognizes. (Overrides Control.IsInputChar(Char).)
Protected method IsInputKey Determines whether the specified key is a regular input key or a special key that requires preprocessing. (Overrides Control.IsInputKey(Keys).)
Protected method MemberwiseClone Overloaded.
Public method NotifyCurrentCellDirty Notifies the DataGridView that the current cell has uncommitted changes.
Protected method NotifyInvalidate Infrastructure. Raises the Invalidated event with a specified region of the control to invalidate. (Inherited from Control.)
Protected method OnAllowUserToAddRowsChanged Raises the AllowUserToAddRowsChanged event.
Protected method OnAllowUserToDeleteRowsChanged Raises the AllowUserToDeleteRowsChanged event.
Protected method OnAllowUserToOrderColumnsChanged Raises the AllowUserToOrderColumnsChanged event.
Protected method OnAllowUserToResizeColumnsChanged Raises the AllowUserToResizeColumnsChanged event.
Protected method OnAllowUserToResizeRowsChanged Raises the AllowUserToResizeRowsChanged event.
Protected method OnAlternatingRowsDefaultCellStyleChanged Raises the AlternatingRowsDefaultCellStyleChanged event.
Protected method OnAutoGenerateColumnsChanged Raises the AutoGenerateColumnsChanged event.
Protected method OnAutoSizeChanged Raises the AutoSizeChanged event. (Inherited from Control.)
Protected method OnAutoSizeColumnModeChanged Raises the AutoSizeColumnModeChanged event.
Protected method OnAutoSizeColumnsModeChanged Raises the AutoSizeColumnsModeChanged event.
Protected method OnAutoSizeRowsModeChanged Raises the AutoSizeRowsModeChanged event.
Protected method OnBackColorChanged Raises the BackColorChanged event. (Inherited from Control.)
Protected method OnBackgroundColorChanged Raises the BackgroundColorChanged event.
Protected method OnBackgroundImageChanged Raises the BackgroundImageChanged event. (Inherited from Control.)
Protected method OnBackgroundImageLayoutChanged Raises the BackgroundImageLayoutChanged event. (Inherited from Control.)
Protected method OnBindingContextChanged Raises the BindingContextChanged event. (Overrides Control.OnBindingContextChanged(EventArgs).)
Protected method OnBorderStyleChanged Raises the BorderStyleChanged event.
Protected method OnCancelRowEdit Raises the CancelRowEdit event.
Protected method OnCausesValidationChanged Raises the CausesValidationChanged event. (Inherited from Control.)
Protected method OnCellBeginEdit Raises the CellBeginEdit event.
Protected method OnCellBorderStyleChanged Raises the CellBorderStyleChanged event.
Protected method OnCellClick Raises the CellClick event.
Protected method OnCellContentClick Raises the CellContentClick event.
Protected method OnCellContentDoubleClick Raises the CellContentDoubleClick event.
Protected method OnCellContextMenuStripChanged Raises the CellContextMenuStripChanged event.
Protected method OnCellContextMenuStripNeeded Raises the CellContextMenuStripNeeded event.
Protected method OnCellDoubleClick Raises the CellDoubleClick event.
Protected method OnCellEndEdit Raises the CellEndEdit event.
Protected method OnCellEnter Raises the CellEnter event.
Protected method OnCellErrorTextChanged Raises the CellErrorTextChanged event.
Protected method OnCellErrorTextNeeded Raises the CellErrorTextNeeded event.
Protected method OnCellFormatting Raises the CellFormatting event.
Protected method OnCellLeave Raises the CellLeave event.
Protected method OnCellMouseClick Raises the CellMouseClick event.
Protected method OnCellMouseDoubleClick Raises the CellMouseDoubleClick event.
Protected method OnCellMouseDown Raises the CellMouseDown event.
Protected method OnCellMouseEnter Raises the CellMouseEnter event.
Protected method OnCellMouseLeave Raises the CellMouseLeave event.
Protected method OnCellMouseMove Raises the CellMouseMove event.
Protected method OnCellMouseUp Raises the CellMouseUp event.
Protected method OnCellPainting Raises the CellPainting event.
Protected method OnCellParsing Raises the CellParsing event.
Protected method OnCellStateChanged Raises the CellStateChanged event.
Protected method OnCellStyleChanged Raises the CellStyleChanged event.
Protected method OnCellStyleContentChanged Raises the CellStyleContentChanged event.
Protected method OnCellToolTipTextChanged Raises the CellToolTipTextChanged event.
Protected method OnCellToolTipTextNeeded Raises the CellToolTipTextNeeded event.
Protected method OnCellValidated Raises the CellValidated event.
Protected method OnCellValidating Raises the CellValidating event.
Protected method OnCellValueChanged Raises the CellValueChanged event.
Protected method OnCellValueNeeded Raises the CellValueNeeded event.
Protected method OnCellValuePushed Raises the CellValuePushed event.
Protected method OnChangeUICues Raises the ChangeUICues event. (Inherited from Control.)
Protected method OnClick Raises the Click event. (Inherited from Control.)
Protected method OnClientSizeChanged Raises the ClientSizeChanged event. (Inherited from Control.)
Protected method OnColumnAdded Raises the ColumnAdded event.
Protected method OnColumnContextMenuStripChanged Raises the ColumnContextMenuStripChanged event.
Protected method OnColumnDataPropertyNameChanged Raises the ColumnDataPropertyNameChanged event.
Protected method OnColumnDefaultCellStyleChanged Raises the ColumnDefaultCellStyleChanged event.
Protected method OnColumnDisplayIndexChanged Raises the ColumnDisplayIndexChanged event.
Protected method OnColumnDividerDoubleClick Raises the ColumnDividerDoubleClick event.
Protected method OnColumnDividerWidthChanged Raises the ColumnDividerWidthChanged event.
Protected method OnColumnHeaderCellChanged Raises the ColumnHeaderCellChanged event.
Protected method OnColumnHeaderMouseClick Raises the ColumnHeaderMouseClick event.
Protected method OnColumnHeaderMouseDoubleClick Raises the ColumnHeaderMouseDoubleClick event.
Protected method OnColumnHeadersBorderStyleChanged Raises the ColumnHeadersBorderStyleChanged event.
Protected method OnColumnHeadersDefaultCellStyleChanged Raises the ColumnHeadersDefaultCellStyleChanged event.
Protected method OnColumnHeadersHeightChanged Raises the ColumnHeadersHeightChanged event.
Protected method OnColumnHeadersHeightSizeModeChanged Raises the ColumnHeadersHeightSizeModeChanged event.
Protected method OnColumnMinimumWidthChanged Raises the ColumnMinimumWidthChanged event.
Protected method OnColumnNameChanged Raises the ColumnNameChanged event.
Protected method OnColumnRemoved Raises the ColumnRemoved event.
Protected method OnColumnSortModeChanged Raises the ColumnSortModeChanged event.
Protected method OnColumnStateChanged Raises the ColumnStateChanged event.
Protected method OnColumnToolTipTextChanged Raises the ColumnToolTipTextChanged event.
Protected method OnColumnWidthChanged Raises the ColumnWidthChanged event.
Protected method OnContextMenuChanged Raises the ContextMenuChanged event. (Inherited from Control.)
Protected method OnContextMenuStripChanged Raises the ContextMenuStripChanged event. (Inherited from Control.)
Protected method OnControlAdded Raises the ControlAdded event. (Inherited from Control.)
Protected method OnControlRemoved Raises the ControlRemoved event. (Inherited from Control.)
Protected method OnCreateControl Raises the CreateControl method. (Inherited from Control.)
Protected method OnCurrentCellChanged Raises the CurrentCellChanged event.
Protected method OnCurrentCellDirtyStateChanged Raises the CurrentCellDirtyStateChanged event.
Protected method OnCursorChanged Raises the CursorChanged event and updates the UserSetCursor property if the cursor was changed in user code. (Overrides Control.OnCursorChanged(EventArgs).)
Protected method OnDataBindingComplete Raises the DataBindingComplete event.
Protected method OnDataError Raises the DataError event.
Protected method OnDataMemberChanged Raises the DataMemberChanged event.
Protected method OnDataSourceChanged Raises the DataSourceChanged event.
Protected method OnDefaultCellStyleChanged Raises the DefaultCellStyleChanged event.
Protected method OnDefaultValuesNeeded Raises the DefaultValuesNeeded event.
Protected method OnDockChanged Raises the DockChanged event. (Inherited from Control.)
Protected method OnDoubleClick Raises the DoubleClick event. (Overrides Control.OnDoubleClick(EventArgs).)
Protected method OnDragDrop Raises the DragDrop event. (Inherited from Control.)
Protected method OnDragEnter Raises the DragEnter event. (Inherited from Control.)
Protected method OnDragLeave Raises the DragLeave event. (Inherited from Control.)
Protected method OnDragOver Raises the DragOver event. (Inherited from Control.)
Protected method OnEditingControlShowing Raises the EditingControlShowing event.
Protected method OnEditModeChanged Raises the EditModeChanged event.
Protected method OnEnabledChanged Raises the EnabledChanged event. (Overrides Control.OnEnabledChanged(EventArgs).)
Protected method OnEnter Raises the Enter event. (Overrides Control.OnEnter(EventArgs).)
Protected method OnFontChanged Raises the FontChanged event. (Overrides Control.OnFontChanged(EventArgs).)
Protected method OnForeColorChanged Raises the ForeColorChanged event. (Overrides Control.OnForeColorChanged(EventArgs).)
Protected method OnGiveFeedback Raises the GiveFeedback event. (Inherited from Control.)
Protected method OnGotFocus Raises the GotFocus event. (Overrides Control.OnGotFocus(EventArgs).)
Protected method OnGridColorChanged Raises the GridColorChanged event.
Protected method OnHandleCreated Raises the HandleCreated event. (Overrides Control.OnHandleCreated(EventArgs).)
Protected method OnHandleDestroyed Raises the HandleDestroyed event. (Overrides Control.OnHandleDestroyed(EventArgs).)
Protected method OnHelpRequested Raises the HelpRequested event. (Inherited from Control.)
Protected method OnImeModeChanged Raises the ImeModeChanged event. (Inherited from Control.)
Protected method OnInvalidated Raises the Invalidated event. (Inherited from Control.)
Protected method OnKeyDown Raises the KeyDown event. (Overrides Control.OnKeyDown(KeyEventArgs).)
Protected method OnKeyPress Raises the KeyPress event. (Overrides Control.OnKeyPress(KeyPressEventArgs).)
Protected method OnKeyUp Raises the KeyUp event. (Overrides Control.OnKeyUp(KeyEventArgs).)
Protected method OnLayout Raises the Layout event. (Overrides Control.OnLayout(LayoutEventArgs).)
Protected method OnLeave Raises the Leave event. (Overrides Control.OnLeave(EventArgs).)
Protected method OnLocationChanged Raises the LocationChanged event. (Inherited from Control.)
Protected method OnLostFocus Raises the LostFocus event. (Overrides Control.OnLostFocus(EventArgs).)
Protected method OnMarginChanged Raises the MarginChanged event. (Inherited from Control.)
Protected method OnMouseCaptureChanged Raises the MouseCaptureChanged event. (Inherited from Control.)
Protected method OnMouseClick Raises the MouseClick event. (Overrides Control.OnMouseClick(MouseEventArgs).)
Protected method OnMouseDoubleClick Raises the MouseDoubleClick event. (Overrides Control.OnMouseDoubleClick(MouseEventArgs).)
Protected method OnMouseDown Raises the MouseDown event. (Overrides Control.OnMouseDown(MouseEventArgs).)
Protected method OnMouseEnter Raises the MouseEnter event. (Overrides Control.OnMouseEnter(EventArgs).)
Protected method OnMouseHover Raises the MouseHover event. (Inherited from Control.)
Protected method OnMouseLeave Raises the MouseLeave event. (Overrides Control.OnMouseLeave(EventArgs).)
Protected method OnMouseMove Raises the MouseMove event. (Overrides Control.OnMouseMove(MouseEventArgs).)
Protected method OnMouseUp Raises the MouseUp event. (Overrides Control.OnMouseUp(MouseEventArgs).)
Protected method OnMouseWheel Raises the MouseWheel event. (Overrides Control.OnMouseWheel(MouseEventArgs).)
Protected method OnMove Raises the Move event. (Inherited from Control.)
Protected method OnMultiSelectChanged Raises the MultiSelectChanged event.
Protected method OnNewRowNeeded Raises the NewRowNeeded event.
Protected method OnNotifyMessage Notifies the control of Windows messages. (Inherited from Control.)
Protected method OnPaddingChanged Raises the PaddingChanged event. (Inherited from Control.)
Protected method OnPaint Raises the Paint event. (Overrides Control.OnPaint(PaintEventArgs).)
Protected method OnPaintBackground Paints the background of the control. (Inherited from Control.)
Protected method OnParentBackColorChanged Raises the BackColorChanged event when the BackColor property value of the control's container changes. (Inherited from Control.)
Protected method OnParentBackgroundImageChanged Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes. (Inherited from Control.)
Protected method OnParentBindingContextChanged Raises the BindingContextChanged event when the BindingContext property value of the control's container changes. (Inherited from Control.)
Protected method OnParentChanged Raises the ParentChanged event. (Inherited from Control.)
Protected method OnParentCursorChanged Raises the CursorChanged event. (Inherited from Control.)
Protected method OnParentEnabledChanged Raises the EnabledChanged event when the Enabled property value of the control's container changes. (Inherited from Control.)
Protected method OnParentFontChanged Raises the FontChanged event when the Font property value of the control's container changes. (Inherited from Control.)
Protected method OnParentForeColorChanged Raises the ForeColorChanged event when the ForeColor property value of the control's container changes. (Inherited from Control.)
Protected method OnParentRightToLeftChanged Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes. (Inherited from Control.)
Protected method OnParentVisibleChanged Raises the VisibleChanged event when the Visible property value of the control's container changes. (Inherited from Control.)
Protected method OnPreviewKeyDown Raises the PreviewKeyDown event. (Inherited from Control.)
Protected method OnPrint Raises the Paint event. (Inherited from Control.)
Protected method OnQueryContinueDrag Raises the QueryContinueDrag event. (Inherited from Control.)
Protected method OnReadOnlyChanged Raises the ReadOnlyChanged event.
Protected method OnRegionChanged Raises the RegionChanged event. (Inherited from Control.)
Protected method OnResize Raises the Resize event. (Overrides Control.OnResize(EventArgs).)
Protected method OnRightToLeftChanged Raises the RightToLeftChanged event. (Overrides Control.OnRightToLeftChanged(EventArgs).)
Protected method OnRowContextMenuStripChanged Raises the RowContextMenuStripChanged event.
Protected method OnRowContextMenuStripNeeded Raises the RowContextMenuStripNeeded event.
Protected method OnRowDefaultCellStyleChanged Raises the RowDefaultCellStyleChanged event.
Protected method OnRowDirtyStateNeeded Raises the RowDirtyStateNeeded event.
Protected method OnRowDividerDoubleClick Raises the RowDividerDoubleClick event.
Protected method OnRowDividerHeightChanged Raises the RowDividerHeightChanged event.
Protected method OnRowEnter Raises the RowEnter event.
Protected method OnRowErrorTextChanged Raises the RowErrorTextChanged event.
Protected method OnRowErrorTextNeeded Raises the RowErrorTextNeeded event.
Protected method OnRowHeaderCellChanged Raises the RowHeaderCellChanged event.
Protected method OnRowHeaderMouseClick Raises the RowHeaderMouseClick event.
Protected method OnRowHeaderMouseDoubleClick Raises the RowHeaderMouseDoubleClick event.
Protected method OnRowHeadersBorderStyleChanged Raises the RowHeadersBorderStyleChanged event.
Protected method OnRowHeadersDefaultCellStyleChanged Raises the RowHeadersDefaultCellStyleChanged event.
Protected method OnRowHeadersWidthChanged Raises the RowHeadersWidthChanged event.
Protected method OnRowHeadersWidthSizeModeChanged Raises the RowHeadersWidthSizeModeChanged event.
Protected method OnRowHeightChanged Raises the RowHeightChanged event.
Protected method OnRowHeightInfoNeeded Raises the RowHeightInfoNeeded event.
Protected method OnRowHeightInfoPushed Raises the RowHeightInfoPushed event.
Protected method OnRowLeave Raises the RowLeave event.
Protected method OnRowMinimumHeightChanged Raises the RowMinimumHeightChanged event.
Protected method OnRowPostPaint Raises the RowPostPaint event.
Protected method OnRowPrePaint Raises the RowPrePaint event.
Protected method OnRowsAdded Raises the RowsAdded event.
Protected method OnRowsDefaultCellStyleChanged Raises the RowsDefaultCellStyleChanged event.
Protected method OnRowsRemoved Raises the RowsRemoved event.
Protected method OnRowStateChanged Raises the RowStateChanged event.
Protected method OnRowUnshared Raises the RowUnshared event.
Protected method OnRowValidated Raises the RowValidated event.
Protected method OnRowValidating Raises the RowValidating event.
Protected method OnScroll Raises the Scroll event.
Protected method OnSelectionChanged Raises the SelectionChanged event.
Protected method OnSizeChanged Raises the SizeChanged event. (Inherited from Control.)
Protected method OnSortCompare Raises the SortCompare event.
Protected method OnSorted Raises the Sorted event.
Protected method OnStyleChanged Raises the StyleChanged event. (Inherited from Control.)
Protected method OnSystemColorsChanged Raises the SystemColorsChanged event. (Inherited from Control.)
Protected method OnTabIndexChanged Raises the TabIndexChanged event. (Inherited from Control.)
Protected method OnTabStopChanged Raises the TabStopChanged event. (Inherited from Control.)
Protected method OnTextChanged Raises the TextChanged event. (Inherited from Control.)
Protected method OnUserAddedRow Raises the UserAddedRow event.
Protected method OnUserDeletedRow Raises the UserDeletedRow event.
Protected method OnUserDeletingRow Raises the UserDeletingRow event.
Protected method OnValidated Raises the Validated event. (Inherited from Control.)
Protected method OnValidating Raises the Validating event. (Overrides Control.OnValidating(CancelEventArgs).)
Protected method OnVisibleChanged Raises the VisibleChanged event. (Overrides Control.OnVisibleChanged(EventArgs).)
Protected method PaintBackground Paints the background of the DataGridView.
Public method PerformLayout Overloaded. Forces the control to apply layout logic to child controls.
Public method PointToClient Computes the location of the specified screen point into client coordinates. (Inherited from Control.)
Public method PointToScreen Computes the location of the specified client point into screen coordinates. (Inherited from Control.)
Public method PreProcessControlMessage Preprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control.)
Public method PreProcessMessage Preprocesses keyboard or input messages within the message loop before they are dispatched. (Inherited from Control.)
Protected method ProcessAKey Processes the A key.
Protected method ProcessCmdKey Processes a command key. (Inherited from Control.)
Protected method ProcessDataGridViewKey Processes keys used for navigating in the DataGridView.
Protected method ProcessDeleteKey Processes the DELETE key.
Protected method ProcessDialogChar Processes a dialog character. (Inherited from Control.)
Protected method ProcessDialogKey Processes keys, such as the TAB, ESCAPE, ENTER, and ARROW keys, used to control dialog boxes. (Overrides Control.ProcessDialogKey(Keys).)
Protected method ProcessDownKey Processes the DOWN ARROW key.
Protected method ProcessEndKey Processes the END key.
Protected method ProcessEnterKey Processes the ENTER key.
Protected method ProcessEscapeKey Processes the ESC key.
Protected method ProcessF2Key Processes the F2 key.
Protected method ProcessHomeKey Processes the HOME key.
Protected method ProcessInsertKey Processes the INSERT key.
Protected method ProcessKeyEventArgs Processes a key message and generates the appropriate control events. (Overrides Control.ProcessKeyEventArgs(Message).)
Protected method ProcessKeyMessage Processes a keyboard message. (Inherited from Control.)
Protected method ProcessKeyPreview Previews a keyboard message. (Overrides Control.ProcessKeyPreview(Message).)
Protected method ProcessLeftKey Processes the LEFT ARROW key.
Protected method ProcessMnemonic Processes a mnemonic character. (Inherited from Control.)
Protected method ProcessNextKey Processes the PAGE DOWN key.
Protected method ProcessPriorKey Processes the PAGE UP key.
Protected method ProcessRightKey Processes the RIGHT ARROW key.
Protected method ProcessSpaceKey Processes the SPACEBAR.
Protected method ProcessTabKey Processes the TAB key.
Protected method ProcessUpKey Processes the UP ARROW key.
Protected method ProcessZeroKey Processes the 0 key.
Protected method RaiseDragEvent Infrastructure. Raises the appropriate drag event. (Inherited from Control.)
Protected method RaiseKeyEvent Infrastructure. Raises the appropriate key event. (Inherited from Control.)
Protected method RaiseMouseEvent Infrastructure. Raises the appropriate mouse event. (Inherited from Control.)
Protected method RaisePaintEvent Infrastructure. Raises the appropriate paint event. (Inherited from Control.)
Protected method RecreateHandle Forces the re-creation of the handle for the control. (Inherited from Control.)
Public method RectangleToClient Computes the size and location of the specified screen rectangle in client coordinates. (Inherited from Control.)
Public method RectangleToScreen Computes the size and location of the specified client rectangle in screen coordinates. (Inherited from Control.)
Public method Refresh Forces the control to invalidate its client area and immediately redraw itself and any child controls. (Inherited from Control.)
Public method RefreshEdit Refreshes the value of the current cell with the underlying cell value when the cell is in edit mode, discarding any previous value.
Public method ResetBackColor Resets the BackColor property to its default value. (Inherited from Control.)
Public method ResetBindings Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values. (Inherited from Control.)
Public method ResetCursor Resets the Cursor property to its default value. (Inherited from Control.)
Public method ResetFont Resets the Font property to its default value. (Inherited from Control.)
Public method ResetForeColor Resets the ForeColor property to its default value. (Inherited from Control.)
Public method ResetImeMode Resets the ImeMode property to its default value. (Inherited from Control.)
Protected method ResetMouseEventArgs Infrastructure. Resets the control to handle the MouseLeave event. (Inherited from Control.)
Public method ResetRightToLeft Resets the RightToLeft property to its default value. (Inherited from Control.)
Public method ResetText Infrastructure. Resets the Text property to its default value. (Overrides Control.ResetText().)
Public method ResumeLayout Overloaded. Resumes the usual layout logic.
Protected method RtlTranslateAlignment Overloaded. Converts the current alignment to the appropriate alignment to support right-to-left text.
Protected method RtlTranslateContent Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text. (Inherited from Control.)
Protected method RtlTranslateHorizontal Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text. (Inherited from Control.)
Protected method RtlTranslateLeftRight Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text. (Inherited from Control.)
Public method Scale Overloaded. Scales the control and any child controls.
Protected method ScaleControl Scales a control's location, size, padding and margin. (Inherited from Control.)
Protected method ScaleCore Infrastructure. This method is not relevant for this class. (Inherited from Control.)
Public method Select Overloaded. Activates a control.
Public method SelectAll Selects all the cells in the DataGridView.
Public method SelectNextControl Activates the next control. (Inherited from Control.)
Public method SendToBack Sends the control to the back of the z-order. (Inherited from Control.)
Protected method SetAutoSizeMode Sets a value indicating how a control will behave when its AutoSize property is enabled. (Inherited from Control.)
Public method SetBounds Overloaded. Sets the bounds of the control.
Protected method SetBoundsCore This member overrides Control.SetBoundsCore. (Overrides Control.SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified).)
Protected method SetClientSizeCore Sets the size of the client area of the control. (Inherited from Control.)
Protected method SetCurrentCellAddressCore Sets the currently active cell.
Protected method SetSelectedCellCore Changes the selection state of the cell with the specified row and column indexes.
Protected method SetSelectedColumnCore Changes the selection state of the column with the specified index.
Protected method SetSelectedRowCore Changes the selection state of the row with the specified index.
Protected method SetStyle Sets a specified ControlStyles flag to either true or false. (Inherited from Control.)
Protected method SetTopLevel Sets the control as the top-level control. (Inherited from Control.)
Protected method SetVisibleCore Sets the control to the specified visible state. (Inherited from Control.)
Public method Show Displays the control to the user. (Inherited from Control.)
Protected method SizeFromClientSize Determines the size of the entire control from the height and width of its client area. (Inherited from Control.)
Public method Sort Overloaded. Sorts the contents of the DataGridView control.
Public method SuspendLayout Temporarily suspends the layout logic for the control. (Inherited from Control.)
Public method ToString Returns a String containing the name of the Component, if any. This method should not be overridden. (Inherited from Component.)
Public method Update Causes the control to redraw the invalidated regions within its client area. (Inherited from Control.)
Protected method UpdateBounds Overloaded. Updates the bounds of the control.
Public method UpdateCellErrorText Forces the cell at the specified location to update its error text.
Public method UpdateCellValue Forces the control to update its display of the cell at the specified location based on its new value, applying any automatic sizing modes currently in effect.
Public method UpdateRowErrorText Overloaded. Forces one or more rows to update their error text.
Public method UpdateRowHeightInfo Forces the specified row or rows to update their height information.
Protected method UpdateStyles Forces the assigned styles to be reapplied to the control. (Inherited from Control.)
Protected method UpdateZOrder Updates the control in its parent's z-order. (Inherited from Control.)
Protected method WndProc Processes window messages. (Overrides Control.WndProc(Message).)
Top

  NameDescription
Public property AccessibilityObject Gets the AccessibleObject assigned to the control. (Inherited from Control.)
Public property AccessibleDefaultActionDescription Gets or sets the default action description of the control for use by accessibility client applications. (Inherited from Control.)
Public property AccessibleDescription Gets or sets the description of the control used by accessibility client applications. (Inherited from Control.)
Public property AccessibleName Gets or sets the name of the control used by accessibility client applications. (Inherited from Control.)
Public property AccessibleRole Gets or sets the accessible role of the control (Inherited from Control.)
Public property AdjustedTopLeftHeaderBorderStyle Gets the border style for the upper-left cell in the DataGridView.
Public property AdvancedCellBorderStyle Gets the border style of the cells in the DataGridView.
Public property AdvancedColumnHeadersBorderStyle Gets the border style of the column header cells in the DataGridView.
Public property AdvancedRowHeadersBorderStyle Gets the border style of the row header cells in the DataGridView.
Public property AllowDrop Gets or sets a value indicating whether the control can accept data that the user drags onto it. (Inherited from Control.)
Public property AllowUserToAddRows Gets or sets a value indicating whether the option to add rows is displayed to the user.
Public property AllowUserToDeleteRows Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.
Public property AllowUserToOrderColumns Gets or sets a value indicating whether manual column repositioning is enabled.
Public property AllowUserToResizeColumns Gets or sets a value indicating whether users can resize columns.
Public property AllowUserToResizeRows Gets or sets a value indicating whether users can resize rows.
Public property AlternatingRowsDefaultCellStyle Gets or sets the default cell style applied to odd-numbered rows of the DataGridView.
Public property Anchor Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. (Inherited from Control.)
Public property AutoGenerateColumns Gets or sets a value indicating whether columns are created automatically when the DataSource or DataMember properties are set.
Public property AutoScrollOffset Gets or sets where this control is scrolled to in ScrollControlIntoView. (Inherited from Control.)
Public property AutoSize This property is not relevant for this class. (Overrides Control.AutoSize.)
Public property AutoSizeColumnsMode Gets or sets a value indicating how column widths are determined.
Public property AutoSizeRowsMode Gets or sets a value indicating how row heights are determined.
Public property BackColor Infrastructure. Gets or sets the background color for the control. (Overrides Control.BackColor.)
Public property BackgroundColor Gets or sets the background color of the DataGridView.
Public property BackgroundImage Infrastructure. Gets or sets the background image displayed in the control. (Overrides Control.BackgroundImage.)
Public property BackgroundImageLayout Infrastructure. Gets or sets the background image layout as defined in the ImageLayout enumeration. (Overrides Control.BackgroundImageLayout.)
Public property BindingContext Gets or sets the BindingContext for the control. (Inherited from Control.)
Public property BorderStyle Gets or sets the border style for the DataGridView.
Public property Bottom Gets the distance, in pixels, between the bottom edge of the control and the top edge of its container's client area. (Inherited from Control.)
Public property Bounds Gets or sets the size and location of the control including its nonclient elements, in pixels, relative to the parent control. (Inherited from Control.)
Protected property CanEnableIme Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support. (Overrides Control.CanEnableIme.)
Public property CanFocus Gets a value indicating whether the control can receive focus. (Inherited from Control.)
Protected property CanRaiseEvents Determines if events can be raised on the control. (Inherited from Control.)
Public property CanSelect Gets a value indicating whether the control can be selected. (Inherited from Control.)
Public property Capture Gets or sets a value indicating whether the control has captured the mouse. (Inherited from Control.)
Public property CausesValidation Gets or sets a value indicating whether the control causes validation to be performed on any controls that require validation when it receives focus. (Inherited from Control.)
Public property CellBorderStyle Gets the cell border style for the DataGridView.
Public property ClientRectangle Gets the rectangle that represents the client area of the control. (Inherited from Control.)
Public property ClientSize Gets or sets the height and width of the client area of the control. (Inherited from Control.)
Public property ClipboardCopyMode Gets or sets a value that indicates whether users can copy cell text values to the Clipboard and whether row and column header text is included.
Public property ColumnCount Gets or sets the number of columns displayed in the DataGridView.
Public property ColumnHeadersBorderStyle Gets the border style applied to the column headers.
Public property ColumnHeadersDefaultCellStyle Gets or sets the default column header style.
Public property ColumnHeadersHeight Gets or sets the height, in pixels, of the column headers row
Public property ColumnHeadersHeightSizeMode Gets or sets a value indicating whether the height of the column headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers.
Public property ColumnHeadersVisible Gets or sets a value indicating whether the column header row is displayed.
Public property Columns Gets a collection that contains all the columns in the control.
Public property CompanyName Gets the name of the company or creator of the application containing the control. (Inherited from Control.)
Public property Container Gets the IContainer that contains the Component. (Inherited from Component.)
Public property ContainsFocus Gets a value indicating whether the control, or one of its child controls, currently has the input focus. (Inherited from Control.)
Public property ContextMenu Gets or sets the shortcut menu associated with the control. (Inherited from Control.)
Public property ContextMenuStrip Gets or sets the ContextMenuStrip associated with this control. (Inherited from Control.)
Public property Controls Gets the collection of controls contained within the control. (Inherited from Control.)
Public property Created Gets a value indicating whether the control has been created. (Inherited from Control.)
Protected property CreateParams Gets the required creation parameters when the control handle is created. (Inherited from Control.)
Public property CurrentCell Gets or sets the currently active cell.
Public property CurrentCellAddress Gets the row and column indexes of the currently active cell.
Public property CurrentRow Gets the row containing the current cell.
Public property Cursor Gets or sets the cursor that is displayed when the mouse pointer is over the control. (Inherited from Control.)
Public property DataBindings Gets the data bindings for the control. (Inherited from Control.)
Public property DataMember Gets or sets the name of the list or table in the data source for which the DataGridView is displaying data.
Public property DataSource Gets or sets the data source that the DataGridView is displaying data for.
Public property DefaultCellStyle Gets or sets the default cell style to be applied to the cells in the DataGridView if no other cell style properties are set.
Protected property DefaultCursor Gets or sets the default cursor for the control. (Inherited from Control.)
Protected property DefaultImeMode Gets the default Input Method Editor (IME) mode supported by the control. (Inherited from Control.)
Protected property DefaultMargin Gets the space, in pixels, that is specified by default between controls. (Inherited from Control.)
Protected property DefaultMaximumSize Gets the length and height, in pixels, that is specified as the default maximum size of a control. (Inherited from Control.)
Protected property DefaultMinimumSize Gets the length and height, in pixels, that is specified as the default minimum size of a control. (Inherited from Control.)
Protected property DefaultPadding Gets the internal spacing, in pixels, of the contents of a control. (Inherited from Control.)
Protected property DefaultSize Gets the default initial size of the control. (Overrides Control.DefaultSize.)
Protected property DesignMode Gets a value that indicates whether the Component is currently in design mode. (Inherited from Component.)
Public property DisplayRectangle Gets the rectangle that represents the display area of the control. (Overrides Control.DisplayRectangle.)
Public property Disposing Gets a value indicating whether the base Control class is in the process of disposing. (Inherited from Control.)
Public property Dock Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. (Inherited from Control.)
Protected property DoubleBuffered Gets or sets a value indicating whether this control should redraw its surface using a secondary buffer to reduce or prevent flicker. (Inherited from Control.)
Public property EditingControl Gets the control hosted by the current cell, if a cell with an editing control is in edit mode.
Public property EditingPanel Gets the panel that contains the EditingControl.
Public property EditMode Gets or sets a value indicating how to begin editing a cell.
Public property Enabled Gets or sets a value indicating whether the control can respond to user interaction. (Inherited from Control.)
Public property EnableHeadersVisualStyles Gets or sets a value indicating whether row and column headers use the visual styles of the user's current theme if visual styles are enabled for the application.
Protected property Events Gets the list of event handlers that are attached to this Component. (Inherited from Component.)
Public property FirstDisplayedCell Gets or sets the first cell currently displayed in the DataGridView; typically, this cell is in the upper left corner.
Public property FirstDisplayedScrollingColumnHiddenWidth Gets the width of the portion of the column that is currently scrolled out of view..
Public property FirstDisplayedScrollingColumnIndex Gets or sets the index of the column that is the first column displayed on the DataGridView.
Public property FirstDisplayedScrollingRowIndex Gets or sets the index of the row that is the first row displayed on the DataGridView.
Public property Focused Gets a value indicating whether the control has input focus. (Inherited from Control.)
Public property Font Gets or sets the font of the text displayed by the DataGridView. (Overrides Control.Font.)
Protected property FontHeight Gets or sets the height of the font of the control. (Inherited from Control.)
Public property ForeColor Gets or sets the foreground color of the DataGridView. (Overrides Control.ForeColor.)
Public property GridColor Gets or sets the color of the grid lines separating the cells of the DataGridView.
Public property Handle Gets the window handle that the control is bound to. (Inherited from Control.)
Public property HasChildren Gets a value indicating whether the control contains one or more child controls. (Inherited from Control.)
Public property Height Gets or sets the height of the control. (Inherited from Control.)
Protected property HorizontalScrollBar Gets the horizontal scroll bar of the control.
Public property HorizontalScrollingOffset Gets or sets the number of pixels by which the control is scrolled horizontally.
Public property ImeMode Gets or sets the Input Method Editor (IME) mode of the control. (Inherited from Control.)
Protected property ImeModeBase Gets or sets the IME mode of a control. (Inherited from Control.)
Public property InvokeRequired Gets a value indicating whether the caller must call an invoke method when making method calls to the control because the caller is on a different thread than the one the control was created on. (Inherited from Control.)
Public property IsAccessible Gets or sets a value indicating whether the control is visible to accessibility applications. (Inherited from Control.)
Public property IsCurrentCellDirty Gets a value indicating whether the current cell has uncommitted changes.
Public property IsCurrentCellInEditMode Gets a value indicating whether the currently active cell is being edited.
Public property IsCurrentRowDirty Gets a value indicating whether the current row has uncommitted changes.
Public property IsDisposed Gets a value indicating whether the control has been disposed of. (Inherited from Control.)
Public property IsHandleCreated Gets a value indicating whether the control has a handle associated with it. (Inherited from Control.)
Public property IsMirrored Gets a value indicating whether the control is mirrored. (Inherited from Control.)
Public property Item Overloaded. Provides an indexer to get or set the cell located at the intersection of the specified row and column.
Public property LayoutEngine Gets a cached instance of the control's layout engine. (Inherited from Control.)
Public property Left Gets or sets the distance, in pixels, between the left edge of the control and the left edge of its container's client area. (Inherited from Control.)
Public property Location Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. (Inherited from Control.)
Public property Margin Gets or sets the space between controls. (Inherited from Control.)
Public property MaximumSize Gets or sets the size that is the upper limit that GetPreferredSize can specify. (Inherited from Control.)
Public property MinimumSize Gets or sets the size that is the lower limit that GetPreferredSize can specify. (Inherited from Control.)
Public property MultiSelect Gets or sets a value indicating whether the user is allowed to select more than one cell, row, or column of the DataGridView at a time.
Public property Name Gets or sets the name of the control. (Inherited from Control.)
Public property NewRowIndex Gets the index of the row for new records.
Public property Padding Infrastructure. This property is not relevant for this control.
Public property Parent Gets or sets the parent container of the control. (Inherited from Control.)
Public property PreferredSize Gets the size of a rectangular area into which the control can fit. (Inherited from Control.)
Public property ProductName Gets the product name of the assembly containing the control. (Inherited from Control.)
Public property ProductVersion Gets the version of the assembly containing the control. (Inherited from Control.)
Public property ReadOnly Gets or sets a value indicating whether the user can edit the cells of the DataGridView control.
Public property RecreatingHandle Gets a value indicating whether the control is currently re-creating its handle. (Inherited from Control.)
Public property Region Gets or sets the window region associated with the control. (Inherited from Control.)
Protected property RenderRightToLeft Obsolete. This property is now obsolete. (Inherited from Control.)
Protected property ResizeRedraw Gets or sets a value indicating whether the control redraws itself when resized. (Inherited from Control.)
Public property Right Gets the distance, in pixels, between the right edge of the control and the left edge of its container's client area. (Inherited from Control.)
Public property RightToLeft Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. (Inherited from Control.)
Public property RowCount Gets or sets the number of rows displayed in the DataGridView.
Public property RowHeadersBorderStyle Gets or sets the border style of the row header cells.
Public property RowHeadersDefaultCellStyle Gets or sets the default style applied to the row header cells.
Public property RowHeadersVisible Gets or sets a value indicating whether the column that contains row headers is displayed.
Public property RowHeadersWidth Gets or sets the width, in pixels, of the column that contains the row headers.
Public property RowHeadersWidthSizeMode Gets or sets a value indicating whether the width of the row headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers.
Public property Rows Gets a collection that contains all the rows in the DataGridView control.
Public property RowsDefaultCellStyle Gets or sets the default style applied to the row cells of the DataGridView.
Public property RowTemplate Gets or sets the row that represents the template for all the rows in the control.
Protected property ScaleChildren Gets a value that determines the scaling of child controls. (Inherited from Control.)
Public property ScrollBars Gets or sets the type of scroll bars to display for the DataGridView control.
Public property SelectedCells Gets the collection of cells selected by the user.
Public property SelectedColumns Gets the collection of columns selected by the user.
Public property SelectedRows Gets the collection of rows selected by the user.
Public property SelectionMode Gets or sets a value indicating how the cells of the DataGridView can be selected.
Public property ShowCellErrors Gets or sets a value indicating whether to show cell errors.
Public property ShowCellToolTips Gets or sets a value indicating whether or not ToolTips will show when the mouse pointer pauses on a cell.
Public property ShowEditingIcon Gets or sets a value indicating whether or not the editing glyph is visible in the row header of the cell being edited.
Protected property ShowFocusCues Gets a value indicating whether the control should display focus rectangles. (Inherited from Control.)
Protected property ShowKeyboardCues Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators. (Inherited from Control.)
Public property ShowRowErrors Gets or sets a value indicating whether row headers will display error glyphs for each row that contains a data entry error.
Public property Site Gets or sets the site of the control. (Inherited from Control.)
Public property Size Gets or sets the height and width of the control. (Inherited from Control.)
Public property SortedColumn Gets the column by which the DataGridView contents are currently sorted.
Public property SortOrder Gets a value indicating whether the items in the DataGridView control are sorted in ascending or descending order, or are not sorted.
Public property 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.
Public property TabIndex Gets or sets the tab order of the control within its container. (Inherited from Control.)
Public property TabStop Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. (Inherited from Control.)
Public property Tag Gets or sets the object that contains data about the control. (Inherited from Control.)
Public property Text Infrastructure. Gets or sets the text associated with the control. (Overrides Control.Text.)
Public property Top Gets or sets the distance, in pixels, between the top edge of the control and the top edge of its container's client area. (Inherited from Control.)
Public property TopLeftHeaderCell Gets or sets the header cell located in the upper left corner of the DataGridView control.
Public property TopLevelControl Gets the parent control that is not parented by another Windows Forms control. Typically, this is the outermost Form that the control is contained in. (Inherited from Control.)
Public property UserSetCursor Gets the default or user-specified value of the Cursor property.
Public property UseWaitCursor Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls. (Inherited from Control.)
Protected property VerticalScrollBar Gets the vertical scroll bar of the control.
Public property VerticalScrollingOffset Gets the number of pixels by which the control is scrolled vertically.
Public property VirtualMode Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.
Public property Visible Gets or sets a value indicating whether the control and all its child controls are displayed. (Inherited from Control.)
Public property Width Gets or sets the width of the control. (Inherited from Control.)
Public property WindowTarget Infrastructure. This property is not relevant for this class. (Inherited from Control.)
Top

  NameDescription
Public event AllowUserToAddRowsChanged Occurs when the value of the AllowUserToAddRows property changes.
Public event AllowUserToDeleteRowsChanged Occurs when the value of the AllowUserToDeleteRowsChanged property changes.
Public event AllowUserToOrderColumnsChanged Occurs when the value of the AllowUserToOrderColumns property changes.
Public event AllowUserToResizeColumnsChanged Occurs when the value of the AllowUserToResizeColumns property changes.
Public event AllowUserToResizeRowsChanged Occurs when the value of the AllowUserToResizeRows property changes.
Public event AlternatingRowsDefaultCellStyleChanged Occurs when the value of the AlternatingRowsDefaultCellStyle property changes.
Public event AutoGenerateColumnsChanged Occurs when the value of the AutoGenerateColumnsChanged property changes.
Public event AutoSizeChanged Infrastructure. This event is not relevant for this class. (Inherited from Control.)
Public event AutoSizeColumnModeChanged Occurs when the value of the AutoSizeMode property of a column changes.
Public event AutoSizeColumnsModeChanged Occurs when the value of the AutoSizeColumnsMode property changes.
Public event AutoSizeRowsModeChanged Occurs when the value of the DataGridViewAutoSizeRowsMode property changes.
Public event BackColorChanged Infrastructure. Occurs when the value of the BackColor property changes.
Public event BackgroundColorChanged Occurs when the value of the BackgroundColor property changes.
Public event BackgroundImageChanged Infrastructure. Occurs when the value of the BackgroundImage property changes.
Public event BackgroundImageLayoutChanged Infrastructure. Occurs when the BackgroundImageLayout property changes.
Public event BindingContextChanged Occurs when the value of the BindingContext property changes. (Inherited from Control.)
Public event BorderStyleChanged Occurs when the value of the BorderStyle property changes.
Public event CancelRowEdit Occurs when the VirtualMode property of a DataGridView control is true and the cancels edits in a row.
Public event CausesValidationChanged Occurs when the value of the CausesValidation property changes. (Inherited from Control.)
Public event CellBeginEdit Occurs when edit mode starts for the selected cell.
Public event CellBorderStyleChanged Occurs when the border style of a cell changes.
Public event CellClick Occurs when any part of a cell is clicked.
Public event CellContentClick Occurs when the content within a cell is clicked.
Public event CellContentDoubleClick Occurs when the user double-clicks a cell's contents.
Public event CellContextMenuStripChanged Occurs when the ContextMenuStrip property changes.
Public event CellContextMenuStripNeeded Occurs when a cell's shortcut menu is needed.
Public event CellDoubleClick Occurs when the user double-clicks anywhere in a cell.
Public event CellEndEdit Occurs when edit mode stops for the currently selected cell.
Public event CellEnter Occurs when the current cell changes in the DataGridView control or when the control receives input focus.
Public event CellErrorTextChanged Occurs when the value of the ErrorText property of a cell changes.
Public event CellErrorTextNeeded Occurs when a cell's error text is needed.
Public event CellFormatting Occurs when the contents of a cell need to be formatted for display.
Public event CellLeave Occurs when a cell loses input focus and is no longer the current cell.
Public event CellMouseClick Occurs whenever the user clicks anywhere on a cell with the mouse.
Public event CellMouseDoubleClick Occurs when a cell within the DataGridView is double-clicked.
Public event CellMouseDown Occurs when the user presses a mouse button while the mouse pointer is within the boundaries of a cell.
Public event CellMouseEnter Occurs when the mouse pointer enters a cell.
Public event CellMouseLeave Occurs when the mouse pointer leaves a cell.
Public event CellMouseMove Occurs when the mouse pointer moves over the DataGridView control.
Public event CellMouseUp Occurs when the user releases a mouse button while over a cell.
Public event CellPainting Occurs when a cell needs to be drawn.
Public event CellParsing Occurs when a cell leaves edit mode if the cell value has been modified.
Public event CellStateChanged Occurs when a cell state changes, such as when the cell loses or gains focus.
Public event CellStyleChanged Occurs when the Style property of a DataGridViewCell changes.
Public event CellStyleContentChanged Occurs when one of the values of a cell style changes.
Public event CellToolTipTextChanged Occurs when the ToolTipText property value changes for a cell in the DataGridView.
Public event CellToolTipTextNeeded Occurs when a cell's ToolTip text is needed.
Public event CellValidated Occurs after the cell has finished validating.
Public event CellValidating Occurs when a cell loses input focus, enabling content validation.
Public event CellValueChanged Occurs when the value of a cell changes.
Public event CellValueNeeded Occurs when the VirtualMode property of the DataGridView control is true and the DataGridView requires a value for a cell in order to format and display the cell.
Public event CellValuePushed Occurs when the VirtualMode property of the DataGridView control is true and a cell value has changed and requires storage in the underlying data source.
Public event ChangeUICues Occurs when the focus or keyboard user interface (UI) cues change. (Inherited from Control.)
Public event Click Occurs when the control is clicked. (Inherited from Control.)
Public event ClientSizeChanged Occurs when the value of the ClientSize property changes. (Inherited from Control.)
Public event ColumnAdded Occurs when a column is added to the control.
Public event ColumnContextMenuStripChanged Occurs when the ContextMenuStrip property of a column changes.
Public event ColumnDataPropertyNameChanged Occurs when the value of the DataPropertyName property for a column changes.
Public event ColumnDefaultCellStyleChanged Occurs when the value of the DefaultCellStyle property for a column changes.
Public event ColumnDisplayIndexChanged Occurs when the value the DisplayIndex property for a column changes.
Public event ColumnDividerDoubleClick Occurs when the user double-clicks a divider between two columns.
Public event ColumnDividerWidthChanged Occurs when the DividerWidth property changes.
Public event ColumnHeaderCellChanged Occurs when the contents of a column header cell change.
Public event ColumnHeaderMouseClick Occurs when the user clicks a column header.
Public event ColumnHeaderMouseDoubleClick Occurs when a column header is double-clicked.
Public event ColumnHeadersBorderStyleChanged Occurs when the ColumnHeadersBorderStyle property changes.
Public event ColumnHeadersDefaultCellStyleChanged Occurs when the value of the ColumnHeadersDefaultCellStyle property changes.
Public event ColumnHeadersHeightChanged Occurs when the value of the ColumnHeadersHeight property changes.
Public event ColumnHeadersHeightSizeModeChanged Occurs when the value of the ColumnHeadersHeightSizeMode property changes.
Public event ColumnMinimumWidthChanged Occurs when the value of the MinimumWidth property for a column changes.
Public event ColumnNameChanged Occurs when the value of the Name property for a column changes.
Public event ColumnRemoved Occurs when a column is removed from the control.
Public event ColumnSortModeChanged Occurs when the value of the SortMode property for a column changes.
Public event ColumnStateChanged Occurs when a column changes state, such as gaining or losing focus.
Public event ColumnToolTipTextChanged Occurs when the ToolTipText property value changes for a column in the DataGridView.
Public event ColumnWidthChanged Occurs when the value of the Width property for a column changes.
Public event ContextMenuChanged Occurs when the value of the ContextMenu property changes. (Inherited from Control.)
Public event ContextMenuStripChanged Occurs when the value of the ContextMenuStrip property changes. (Inherited from Control.)
Public event ControlAdded Occurs when a new control is added to the Control.ControlCollection. (Inherited from Control.)
Public event ControlRemoved Occurs when a control is removed from the Control.ControlCollection. (Inherited from Control.)
Public event CurrentCellChanged Occurs when the CurrentCell property changes.
Public event CurrentCellDirtyStateChanged Occurs when the state of a cell changes in relation to a change in its contents.
Public event CursorChanged Occurs when the value of the Cursor property changes. (Inherited from Control.)
Public event DataBindingComplete Occurs after a data-binding operation has finished.
Public event DataError Occurs when an external data-parsing or validation operation throws an exception, or when an attempt to commit data to a data source fails.
Public event DataMemberChanged Occurs when value of the DataMember property changes.
Public event DataSourceChanged Occurs when the value of the DataSource property changes.
Public event DefaultCellStyleChanged Occurs when the value of the DefaultCellStyle property changes.
Public event DefaultValuesNeeded Occurs when the user enters the row for new records so that it can be populated with default values.
Public event Disposed Occurs when the component is disposed by a call to the Dispose method. (Inherited from Component.)
Public event DockChanged Occurs when the value of the Dock property changes. (Inherited from Control.)
Public event DoubleClick Occurs when the control is double-clicked. (Inherited from Control.)
Public event DragDrop Occurs when a drag-and-drop operation is completed. (Inherited from Control.)
Public event DragEnter Occurs when an object is dragged into the control's bounds. (Inherited from Control.)
Public event DragLeave Occurs when an object is dragged out of the control's bounds. (Inherited from Control.)
Public event DragOver Occurs when an object is dragged over the control's bounds. (Inherited from Control.)
Public event EditingControlShowing Occurs when a control for editing a cell is showing.
Public event EditModeChanged Occurs when the value of the EditMode property changes.
Public event EnabledChanged Occurs when the Enabled property value has changed. (Inherited from Control.)
Public event Enter Occurs when the control is entered. (Inherited from Control.)
Public event FontChanged Occurs when the Font property value changes.
Public event ForeColorChanged Occurs when the ForeColor property value changes.
Public event GiveFeedback Occurs during a drag operation. (Inherited from Control.)
Public event GotFocus Occurs when the control receives focus. (Inherited from Control.)
Public event GridColorChanged Occurs when the value of the GridColor property changes.
Public event HandleCreated Occurs when a handle is created for the control. (Inherited from Control.)
Public event HandleDestroyed Occurs when the control's handle is in the process of being destroyed. (Inherited from Control.)
Public event HelpRequested Occurs when the user requests help for a control. (Inherited from Control.)
Public event ImeModeChanged Occurs when the ImeMode property has changed. (Inherited from Control.)
Public event Invalidated Occurs when a control's display requires redrawing. (Inherited from Control.)
Public event KeyDown Occurs when a key is pressed while the control has focus. (Inherited from Control.)
Public event KeyPress Occurs when a key is pressed while the control has focus. (Inherited from Control.)
Public event KeyUp Occurs when a key is released while the control has focus. (Inherited from Control.)
Public event Layout Occurs when a control should reposition its child controls. (Inherited from Control.)
Public event Leave Occurs when the input focus leaves the control. (Inherited from Control.)
Public event LocationChanged Occurs when the Location property value has changed. (Inherited from Control.)
Public event LostFocus Occurs when the control loses focus. (Inherited from Control.)
Public event MarginChanged Occurs when the control's margin changes. (Inherited from Control.)
Public event MouseCaptureChanged Occurs when the control loses mouse capture. (Inherited from Control.)
Public event MouseClick Occurs when the control is clicked by the mouse. (Inherited from Control.)
Public event MouseDoubleClick Occurs when the control is double clicked by the mouse. (Inherited from Control.)
Public event MouseDown Occurs when the mouse pointer is over the control and a mouse button is pressed. (Inherited from Control.)
Public event MouseEnter Occurs when the mouse pointer enters the control. (Inherited from Control.)
Public event MouseHover Occurs when the mouse pointer rests on the control. (Inherited from Control.)
Public event MouseLeave Occurs when the mouse pointer leaves the control. (Inherited from Control.)
Public event MouseMove Occurs when the mouse pointer is moved over the control. (Inherited from Control.)
Public event MouseUp Occurs when the mouse pointer is over the control and a mouse button is released. (Inherited from Control.)
Public event MouseWheel Occurs when the mouse wheel moves while the control has focus. (Inherited from Control.)
Public event Move Occurs when the control is moved. (Inherited from Control.)
Public event MultiSelectChanged Occurs when the value of the MultiSelect property changes.
Public event NewRowNeeded Occurs when the VirtualMode property of the DataGridView is true and the user navigates to the new row at the bottom of the DataGridView.
Public event PaddingChanged Infrastructure. Occurs when the value of the Padding property changes.
Public event Paint Occurs when the control is redrawn. (Inherited from Control.)
Public event ParentChanged Occurs when the Parent property value changes. (Inherited from Control.)
Public event PreviewKeyDown Occurs before the KeyDown event when a key is pressed while focus is on this control. (Inherited from Control.)
Public event QueryAccessibilityHelp Occurs when AccessibleObject is providing help to accessibility applications. (Inherited from Control.)
Public event QueryContinueDrag Occurs during a drag-and-drop operation and enables the drag source to determine whether the drag-and-drop operation should be canceled. (Inherited from Control.)
Public event ReadOnlyChanged Occurs when the ReadOnly property changes.
Public event RegionChanged Occurs when the value of the Region property changes. (Inherited from Control.)
Public event Resize Occurs when the control is resized. (Inherited from Control.)
Public event RightToLeftChanged Occurs when the RightToLeft property value changes. (Inherited from Control.)
Public event RowContextMenuStripChanged Occurs when the ContextMenuStrip property changes.
Public event RowContextMenuStripNeeded Occurs when a row's shortcut menu is needed.
Public event RowDefaultCellStyleChanged Occurs when the value of the DefaultCellStyle property for a row changes.
Public event RowDirtyStateNeeded Occurs when the VirtualMode property of the DataGridView control is true and the DataGridView needs to determine whether the current row has uncommitted changes.
Public event RowDividerDoubleClick Occurs when the user double-clicks the divider between two rows.
Public event RowDividerHeightChanged Occurs when the DividerHeight property changes.
Public event RowEnter Occurs when a row receives input focus but before it becomes the current row.
Public event RowErrorTextChanged Occurs when the ErrorText property of a row changes.
Public event RowErrorTextNeeded Occurs when a row's error text is needed.
Public event RowHeaderCellChanged Occurs when the user changes the contents of a row header cell.
Public event RowHeaderMouseClick Occurs when the user clicks within the boundaries of a row header.
Public event RowHeaderMouseDoubleClick Occurs when a row header is double-clicked.
Public event RowHeadersBorderStyleChanged Occurs when the RowHeadersBorderStyle property changes.
Public event RowHeadersDefaultCellStyleChanged Occurs when the value of the RowHeadersDefaultCellStyle property changes.
Public event RowHeadersWidthChanged Occurs when value of the RowHeadersWidth property changes.
Public event RowHeadersWidthSizeModeChanged Occurs when the value of the RowHeadersWidthSizeMode property changes.
Public event RowHeightChanged Occurs when the value of the Height property for a row changes.
Public event RowHeightInfoNeeded Occurs when information about row height is requested.
Public event RowHeightInfoPushed Occurs when the user changes the height of a row.
Public event RowLeave Occurs when a row loses input focus and is no longer the current row.
Public event RowMinimumHeightChanged Occurs when the value of the MinimumHeight property for a row changes.
Public event RowPostPaint Occurs after a DataGridViewRow is painted.
Public event RowPrePaint Occurs before a DataGridViewRow is painted
Public event RowsAdded Occurs after a new row is added to the DataGridView.
Public event RowsDefaultCellStyleChanged Occurs when the value of the RowsDefaultCellStyle property changes.
Public event RowsRemoved Occurs when a row or rows are deleted from the DataGridView.
Public event RowStateChanged Occurs when a row changes state, such as losing or gaining input focus.
Public event RowUnshared Occurs when a row's state changes from shared to unshared.
Public event RowValidated Occurs after a row has finished validating.
Public event RowValidating Occurs when a row is validating.
Public event Scroll Occurs when the user scrolls through the control contents.
Public event SelectionChanged Occurs when the current selection changes.
Public event SizeChanged Occurs when the Size property value changes. (Inherited from Control.)
Public event SortCompare Occurs when the DataGridView compares two cell values to perform a sort operation.
Public event Sorted Occurs when the DataGridView control completes a sorting operation.
Public event StyleChanged Infrastructure. Occurs when the control style changes.
Public event SystemColorsChanged Occurs when the system colors change. (Inherited from Control.)
Public event TabIndexChanged Occurs when the TabIndex property value changes. (Inherited from Control.)
Public event TabStopChanged Occurs when the TabStop property value changes. (Inherited from Control.)
Public event TextChanged Infrastructure. Occurs when the value of the Text property changes.
Public event UserAddedRow Occurs when the user has finished adding a row to the DataGridView control.
Public event UserDeletedRow Occurs when the user has finished deleting a row from the DataGridView control.
Public event UserDeletingRow Occurs when the user deletes a row from the DataGridView control.
Public event Validated Occurs when the control is finished validating. (Inherited from Control.)
Public event Validating Occurs when the control is validating. (Inherited from Control.)
Public event VisibleChanged Occurs when the Visible property value changes. (Inherited from Control.)
Top

  NameDescription
Explicit interface implemetation Private method ISupportInitialize.BeginInit For a description of this member, see BeginInit.
Explicit interface implemetation Private method ISupportInitialize.EndInit For a description of this member, see EndInit.
Explicit interface implemetation Private method IDropTarget.OnDragDrop Infrastructure. Raises the DragDrop event. (Inherited from Control.)
Explicit interface implemetation Private method IDropTarget.OnDragEnter Infrastructure. Raises the DragEnter event. (Inherited from Control.)
Explicit interface implemetation Private method IDropTarget.OnDragLeave Infrastructure. Raises the DragLeave event. (Inherited from Control.)
Explicit interface implemetation Private method IDropTarget.OnDragOver Infrastructure. Raises the DragOver event. (Inherited from Control.)
Top

Community Additions

ADD
Show:
© 2014 Microsoft