DataGridView DataGridView DataGridView DataGridView Class

Definition

Displays data in a customizable grid.

public ref class DataGridView : System::Windows::Forms::Control, System::ComponentModel::ISupportInitialize
[System.ComponentModel.ComplexBindingProperties("DataSource", "DataMember")]
[System.Runtime.InteropServices.ClassInterface]
[System.Runtime.InteropServices.ComVisible(true)]
[System.Windows.Forms.Docking(System.Windows.Forms.DockingBehavior.Ask)]
[System.Runtime.InteropServices.ClassInterface(System.Runtime.InteropServices.ClassInterfaceType.AutoDispatch)]
public class DataGridView : System.Windows.Forms.Control, System.ComponentModel.ISupportInitialize
type DataGridView = class
    inherit Control
    interface ISupportInitialize
Public Class DataGridView
Inherits Control
Implements ISupportInitialize
Inheritance
Attributes
Implements

Examples

The following code example demonstrates how to initialize an unbound DataGridView control.

using System;
using System.Drawing;
using System.Windows.Forms;

public class Form1 : System.Windows.Forms.Form
{
    private Panel buttonPanel = new Panel();
    private DataGridView songsDataGridView = new DataGridView();
    private Button addNewRowButton = new Button();
    private Button deleteRowButton = new Button();

    public Form1()
    {
        this.Load += new EventHandler(Form1_Load);
    }

    private void Form1_Load(System.Object sender, System.EventArgs e)
    {
        SetupLayout();
        SetupDataGridView();
        PopulateDataGridView();
    }

    private void songsDataGridView_CellFormatting(object sender,
        System.Windows.Forms.DataGridViewCellFormattingEventArgs e)
    {
        if (e != null)
        {
            if (this.songsDataGridView.Columns[e.ColumnIndex].Name == "Release Date")
            {
                if (e.Value != null)
                {
                    try
                    {
                        e.Value = DateTime.Parse(e.Value.ToString())
                            .ToLongDateString();
                        e.FormattingApplied = true;
                    }
                    catch (FormatException)
                    {
                        Console.WriteLine("{0} is not a valid date.", e.Value.ToString());
                    }
                }
            }
        }
    }

    private void addNewRowButton_Click(object sender, EventArgs e)
    {
        this.songsDataGridView.Rows.Add();
    }

    private void deleteRowButton_Click(object sender, EventArgs e)
    {
        if (this.songsDataGridView.SelectedRows.Count > 0 &&
            this.songsDataGridView.SelectedRows[0].Index !=
            this.songsDataGridView.Rows.Count - 1)
        {
            this.songsDataGridView.Rows.RemoveAt(
                this.songsDataGridView.SelectedRows[0].Index);
        }
    }

    private void SetupLayout()
    {
        this.Size = new Size(600, 500);

        addNewRowButton.Text = "Add Row";
        addNewRowButton.Location = new Point(10, 10);
        addNewRowButton.Click += new EventHandler(addNewRowButton_Click);

        deleteRowButton.Text = "Delete Row";
        deleteRowButton.Location = new Point(100, 10);
        deleteRowButton.Click += new EventHandler(deleteRowButton_Click);

        buttonPanel.Controls.Add(addNewRowButton);
        buttonPanel.Controls.Add(deleteRowButton);
        buttonPanel.Height = 50;
        buttonPanel.Dock = DockStyle.Bottom;

        this.Controls.Add(this.buttonPanel);
    }

    private void SetupDataGridView()
    {
        this.Controls.Add(songsDataGridView);

        songsDataGridView.ColumnCount = 5;

        songsDataGridView.ColumnHeadersDefaultCellStyle.BackColor = Color.Navy;
        songsDataGridView.ColumnHeadersDefaultCellStyle.ForeColor = Color.White;
        songsDataGridView.ColumnHeadersDefaultCellStyle.Font =
            new Font(songsDataGridView.Font, FontStyle.Bold);

        songsDataGridView.Name = "songsDataGridView";
        songsDataGridView.Location = new Point(8, 8);
        songsDataGridView.Size = new Size(500, 250);
        songsDataGridView.AutoSizeRowsMode =
            DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders;
        songsDataGridView.ColumnHeadersBorderStyle =
            DataGridViewHeaderBorderStyle.Single;
        songsDataGridView.CellBorderStyle = DataGridViewCellBorderStyle.Single;
        songsDataGridView.GridColor = Color.Black;
        songsDataGridView.RowHeadersVisible = false;

        songsDataGridView.Columns[0].Name = "Release Date";
        songsDataGridView.Columns[1].Name = "Track";
        songsDataGridView.Columns[2].Name = "Title";
        songsDataGridView.Columns[3].Name = "Artist";
        songsDataGridView.Columns[4].Name = "Album";
        songsDataGridView.Columns[4].DefaultCellStyle.Font =
            new Font(songsDataGridView.DefaultCellStyle.Font, FontStyle.Italic);

        songsDataGridView.SelectionMode =
            DataGridViewSelectionMode.FullRowSelect;
        songsDataGridView.MultiSelect = false;
        songsDataGridView.Dock = DockStyle.Fill;

        songsDataGridView.CellFormatting += new
            DataGridViewCellFormattingEventHandler(
            songsDataGridView_CellFormatting);
    }

    private void PopulateDataGridView()
    {

        string[] row0 = { "11/22/1968", "29", "Revolution 9", 
            "Beatles", "The Beatles [White Album]" };
        string[] row1 = { "1960", "6", "Fools Rush In", 
            "Frank Sinatra", "Nice 'N' Easy" };
        string[] row2 = { "11/11/1971", "1", "One of These Days", 
            "Pink Floyd", "Meddle" };
        string[] row3 = { "1988", "7", "Where Is My Mind?", 
            "Pixies", "Surfer Rosa" };
        string[] row4 = { "5/1981", "9", "Can't Find My Mind", 
            "Cramps", "Psychedelic Jungle" };
        string[] row5 = { "6/10/2003", "13", 
            "Scatterbrain. (As Dead As Leaves.)", 
            "Radiohead", "Hail to the Thief" };
        string[] row6 = { "6/30/1992", "3", "Dress", "P J Harvey", "Dry" };

        songsDataGridView.Rows.Add(row0);
        songsDataGridView.Rows.Add(row1);
        songsDataGridView.Rows.Add(row2);
        songsDataGridView.Rows.Add(row3);
        songsDataGridView.Rows.Add(row4);
        songsDataGridView.Rows.Add(row5);
        songsDataGridView.Rows.Add(row6);

        songsDataGridView.Columns[0].DisplayIndex = 3;
        songsDataGridView.Columns[1].DisplayIndex = 4;
        songsDataGridView.Columns[2].DisplayIndex = 0;
        songsDataGridView.Columns[3].DisplayIndex = 1;
        songsDataGridView.Columns[4].DisplayIndex = 2;
    }


    [STAThreadAttribute()]
    static void Main()
    {
        Application.EnableVisualStyles();
        Application.Run(new Form1());
    }
}
Imports System
Imports System.Drawing
Imports System.Windows.Forms

Public Class Form1
    Inherits System.Windows.Forms.Form

    Private buttonPanel As New Panel
    Private WithEvents songsDataGridView As New DataGridView
    Private WithEvents addNewRowButton As New Button
    Private WithEvents deleteRowButton As New Button

    Private Sub Form1_Load(ByVal sender As System.Object, _
        ByVal e As System.EventArgs) Handles MyBase.Load

        SetupLayout()
        SetupDataGridView()
        PopulateDataGridView()

    End Sub

    Private Sub songsDataGridView_CellFormatting(ByVal sender As Object, _
        ByVal e As System.Windows.Forms.DataGridViewCellFormattingEventArgs) _
        Handles songsDataGridView.CellFormatting

        If e IsNot Nothing Then

            If Me.songsDataGridView.Columns(e.ColumnIndex).Name = _
            "Release Date" Then
                If e.Value IsNot Nothing Then
                    Try
                        e.Value = DateTime.Parse(e.Value.ToString()) _
                            .ToLongDateString()
                        e.FormattingApplied = True
                    Catch ex As FormatException
                        Console.WriteLine("{0} is not a valid date.", e.Value.ToString())
                    End Try
                End If
            End If

        End If

    End Sub

    Private Sub addNewRowButton_Click(ByVal sender As Object, _
        ByVal e As EventArgs) Handles addNewRowButton.Click

        Me.songsDataGridView.Rows.Add()

    End Sub

    Private Sub deleteRowButton_Click(ByVal sender As Object, _
        ByVal e As EventArgs) Handles deleteRowButton.Click

        If Me.songsDataGridView.SelectedRows.Count > 0 AndAlso _
            Not Me.songsDataGridView.SelectedRows(0).Index = _
            Me.songsDataGridView.Rows.Count - 1 Then

            Me.songsDataGridView.Rows.RemoveAt( _
                Me.songsDataGridView.SelectedRows(0).Index)

        End If

    End Sub

    Private Sub SetupLayout()

        Me.Size = New Size(600, 500)

        With addNewRowButton
            .Text = "Add Row"
            .Location = New Point(10, 10)
        End With

        With deleteRowButton
            .Text = "Delete Row"
            .Location = New Point(100, 10)
        End With

        With buttonPanel
            .Controls.Add(addNewRowButton)
            .Controls.Add(deleteRowButton)
            .Height = 50
            .Dock = DockStyle.Bottom
        End With

        Me.Controls.Add(Me.buttonPanel)

    End Sub

    Private Sub SetupDataGridView()

        Me.Controls.Add(songsDataGridView)

        songsDataGridView.ColumnCount = 5
        With songsDataGridView.ColumnHeadersDefaultCellStyle
            .BackColor = Color.Navy
            .ForeColor = Color.White
            .Font = New Font(songsDataGridView.Font, FontStyle.Bold)
        End With

        With songsDataGridView
            .Name = "songsDataGridView"
            .Location = New Point(8, 8)
            .Size = New Size(500, 250)
            .AutoSizeRowsMode = _
                DataGridViewAutoSizeRowsMode.DisplayedCellsExceptHeaders
            .ColumnHeadersBorderStyle = DataGridViewHeaderBorderStyle.Single
            .CellBorderStyle = DataGridViewCellBorderStyle.Single
            .GridColor = Color.Black
            .RowHeadersVisible = False

            .Columns(0).Name = "Release Date"
            .Columns(1).Name = "Track"
            .Columns(2).Name = "Title"
            .Columns(3).Name = "Artist"
            .Columns(4).Name = "Album"
            .Columns(4).DefaultCellStyle.Font = _
                New Font(Me.songsDataGridView.DefaultCellStyle.Font, FontStyle.Italic)

            .SelectionMode = DataGridViewSelectionMode.FullRowSelect
            .MultiSelect = False
            .Dock = DockStyle.Fill
        End With

    End Sub

    Private Sub PopulateDataGridView()

        Dim row0 As String() = {"11/22/1968", "29", "Revolution 9", _
            "Beatles", "The Beatles [White Album]"}
        Dim row1 As String() = {"1960", "6", "Fools Rush In", _
            "Frank Sinatra", "Nice 'N' Easy"}
        Dim row2 As String() = {"11/11/1971", "1", "One of These Days", _
            "Pink Floyd", "Meddle"}
        Dim row3 As String() = {"1988", "7", "Where Is My Mind?", _
            "Pixies", "Surfer Rosa"}
        Dim row4 As String() = {"5/1981", "9", "Can't Find My Mind", _
            "Cramps", "Psychedelic Jungle"}
        Dim row5 As String() = {"6/10/2003", "13", _
            "Scatterbrain. (As Dead As Leaves.)", _
            "Radiohead", "Hail to the Thief"}
        Dim row6 As String() = {"6/30/1992", "3", "Dress", "P J Harvey", "Dry"}

        With Me.songsDataGridView.Rows
            .Add(row0)
            .Add(row1)
            .Add(row2)
            .Add(row3)
            .Add(row4)
            .Add(row5)
            .Add(row6)
        End With

        With Me.songsDataGridView
            .Columns(0).DisplayIndex = 3
            .Columns(1).DisplayIndex = 4
            .Columns(2).DisplayIndex = 0
            .Columns(3).DisplayIndex = 1
            .Columns(4).DisplayIndex = 2
        End With

    End Sub


    <STAThreadAttribute()> _
    Public Shared Sub Main()
        Application.EnableVisualStyles()
        Application.Run(New Form1())
    End Sub

End Class

Remarks

The DataGridView control provides a customizable table for displaying data. The DataGridView class allows customization of cells, rows, columns, and borders through the use of properties such as DefaultCellStyle, ColumnHeadersDefaultCellStyle, CellBorderStyle, and GridColor. For more information, see Basic Formatting and Styling in the Windows Forms DataGridView Control.

You can use a DataGridView control to display data with or without an underlying data source. Without specifying a data source, you can create columns and rows that contain data and add them directly to the DataGridView using the Rows and Columns properties. You can also use the Rows collection to access DataGridViewRow objects and the DataGridViewRow.Cells property to read or write cell values directly. The Item[String, Int32] indexer also provides direct access to cells.

As an alternative to populating the control manually, you can set the DataSource and DataMember properties to bind the DataGridView to a data source and automatically populate it with data. For more information, see Displaying Data in the Windows Forms DataGridView Control.

When working with very large amounts of data, you can set the VirtualMode property to true to display a subset of the available data. Virtual mode requires the implementation of a data cache from which the DataGridView control is populated. For more information, see Data Display Modes in the Windows Forms DataGridView Control.

For additional information about the features available in the DataGridView control, see DataGridView Control. The following table provides direct links to common tasks.

Although the DataGridView control replaces and adds functionality to the DataGrid control of previous versions, the DataGrid control is retained for both backward compatibility and future use if you choose. For more information, see Differences Between the Windows Forms DataGridView and DataGrid Controls.

Note

The DataGridView control inherits both the ContextMenu and ContextMenuStrip properties from Control, but supports only the ContextMenuStrip property. Using the ContextMenu property with the DataGridView control has no effect.

Constructors

DataGridView() DataGridView() DataGridView() DataGridView()

Initializes a new instance of the DataGridView class.

Properties

AccessibilityObject AccessibilityObject AccessibilityObject AccessibilityObject

Gets the AccessibleObject assigned to the control.

(Inherited from Control)
AccessibleDefaultActionDescription AccessibleDefaultActionDescription AccessibleDefaultActionDescription AccessibleDefaultActionDescription

Gets or sets the default action description of the control for use by accessibility client applications.

(Inherited from Control)
AccessibleDescription AccessibleDescription AccessibleDescription AccessibleDescription

Gets or sets the description of the control used by accessibility client applications.

(Inherited from Control)
AccessibleName AccessibleName AccessibleName AccessibleName

Gets or sets the name of the control used by accessibility client applications.

(Inherited from Control)
AccessibleRole AccessibleRole AccessibleRole AccessibleRole

Gets or sets the accessible role of the control

(Inherited from Control)
AdjustedTopLeftHeaderBorderStyle AdjustedTopLeftHeaderBorderStyle AdjustedTopLeftHeaderBorderStyle AdjustedTopLeftHeaderBorderStyle

Gets the border style for the upper-left cell in the DataGridView.

AdvancedCellBorderStyle AdvancedCellBorderStyle AdvancedCellBorderStyle AdvancedCellBorderStyle

Gets the border style of the cells in the DataGridView.

AdvancedColumnHeadersBorderStyle AdvancedColumnHeadersBorderStyle AdvancedColumnHeadersBorderStyle AdvancedColumnHeadersBorderStyle

Gets the border style of the column header cells in the DataGridView.

AdvancedRowHeadersBorderStyle AdvancedRowHeadersBorderStyle AdvancedRowHeadersBorderStyle AdvancedRowHeadersBorderStyle

Gets the border style of the row header cells in the DataGridView.

AllowDrop AllowDrop AllowDrop AllowDrop

Gets or sets a value indicating whether the control can accept data that the user drags onto it.

(Inherited from Control)
AllowUserToAddRows AllowUserToAddRows AllowUserToAddRows AllowUserToAddRows

Gets or sets a value indicating whether the option to add rows is displayed to the user.

AllowUserToDeleteRows AllowUserToDeleteRows AllowUserToDeleteRows AllowUserToDeleteRows

Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView.

AllowUserToOrderColumns AllowUserToOrderColumns AllowUserToOrderColumns AllowUserToOrderColumns

Gets or sets a value indicating whether manual column repositioning is enabled.

AllowUserToResizeColumns AllowUserToResizeColumns AllowUserToResizeColumns AllowUserToResizeColumns

Gets or sets a value indicating whether users can resize columns.

AllowUserToResizeRows AllowUserToResizeRows AllowUserToResizeRows AllowUserToResizeRows

Gets or sets a value indicating whether users can resize rows.

AlternatingRowsDefaultCellStyle AlternatingRowsDefaultCellStyle AlternatingRowsDefaultCellStyle AlternatingRowsDefaultCellStyle

Gets or sets the default cell style applied to odd-numbered rows of the DataGridView.

Anchor Anchor Anchor 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)
AutoGenerateColumns AutoGenerateColumns AutoGenerateColumns AutoGenerateColumns

Gets or sets a value indicating whether columns are created automatically when the DataSource or DataMember properties are set.

AutoScrollOffset AutoScrollOffset AutoScrollOffset AutoScrollOffset

Gets or sets where this control is scrolled to in ScrollControlIntoView(Control).

(Inherited from Control)
AutoSize AutoSize AutoSize AutoSize

This property is not relevant for this class.

AutoSizeColumnsMode AutoSizeColumnsMode AutoSizeColumnsMode AutoSizeColumnsMode

Gets or sets a value indicating how column widths are determined.

AutoSizeRowsMode AutoSizeRowsMode AutoSizeRowsMode AutoSizeRowsMode

Gets or sets a value indicating how row heights are determined.

BackColor BackColor BackColor BackColor

Gets or sets the background color for the control.

BackgroundColor BackgroundColor BackgroundColor BackgroundColor

Gets or sets the background color of the DataGridView.

BackgroundImage BackgroundImage BackgroundImage BackgroundImage

Gets or sets the background image displayed in the control.

BackgroundImageLayout BackgroundImageLayout BackgroundImageLayout BackgroundImageLayout

Gets or sets the background image layout as defined in the ImageLayout enumeration.

BindingContext BindingContext BindingContext BindingContext

Gets or sets the BindingContext for the control.

(Inherited from Control)
BorderStyle BorderStyle BorderStyle BorderStyle

Gets or sets the border style for the DataGridView.

Bottom Bottom Bottom 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)
Bounds Bounds Bounds 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)
CanEnableIme CanEnableIme CanEnableIme CanEnableIme

Gets a value indicating whether the ImeMode property can be set to an active value, to enable IME support.

CanFocus CanFocus CanFocus CanFocus

Gets a value indicating whether the control can receive focus.

(Inherited from Control)
CanRaiseEvents CanRaiseEvents CanRaiseEvents CanRaiseEvents

Determines if events can be raised on the control.

(Inherited from Control)
CanSelect CanSelect CanSelect CanSelect

Gets a value indicating whether the control can be selected.

(Inherited from Control)
Capture Capture Capture Capture

Gets or sets a value indicating whether the control has captured the mouse.

(Inherited from Control)
CausesValidation CausesValidation CausesValidation 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)
CellBorderStyle CellBorderStyle CellBorderStyle CellBorderStyle

Gets the cell border style for the DataGridView.

ClientRectangle ClientRectangle ClientRectangle ClientRectangle

Gets the rectangle that represents the client area of the control.

(Inherited from Control)
ClientSize ClientSize ClientSize ClientSize

Gets or sets the height and width of the client area of the control.

(Inherited from Control)
ClipboardCopyMode ClipboardCopyMode ClipboardCopyMode 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.

ColumnCount ColumnCount ColumnCount ColumnCount

Gets or sets the number of columns displayed in the DataGridView.

ColumnHeadersBorderStyle ColumnHeadersBorderStyle ColumnHeadersBorderStyle ColumnHeadersBorderStyle

Gets the border style applied to the column headers.

ColumnHeadersDefaultCellStyle ColumnHeadersDefaultCellStyle ColumnHeadersDefaultCellStyle ColumnHeadersDefaultCellStyle

Gets or sets the default column header style.

ColumnHeadersHeight ColumnHeadersHeight ColumnHeadersHeight ColumnHeadersHeight

Gets or sets the height, in pixels, of the column headers row

ColumnHeadersHeightSizeMode ColumnHeadersHeightSizeMode ColumnHeadersHeightSizeMode 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.

ColumnHeadersVisible ColumnHeadersVisible ColumnHeadersVisible ColumnHeadersVisible

Gets or sets a value indicating whether the column header row is displayed.

Columns Columns Columns Columns

Gets a collection that contains all the columns in the control.

CompanyName CompanyName CompanyName CompanyName

Gets the name of the company or creator of the application containing the control.

(Inherited from Control)
Container Container Container Container

Gets the IContainer that contains the Component.

(Inherited from Component)
ContainsFocus ContainsFocus ContainsFocus ContainsFocus

Gets a value indicating whether the control, or one of its child controls, currently has the input focus.

(Inherited from Control)
ContextMenu ContextMenu ContextMenu ContextMenu

Gets or sets the shortcut menu associated with the control.

(Inherited from Control)
ContextMenuStrip ContextMenuStrip ContextMenuStrip ContextMenuStrip

Gets or sets the ContextMenuStrip associated with this control.

(Inherited from Control)
Controls Controls Controls Controls

Gets the collection of controls contained within the control.

(Inherited from Control)
Created Created Created Created

Gets a value indicating whether the control has been created.

(Inherited from Control)
CreateParams CreateParams CreateParams CreateParams

Gets the required creation parameters when the control handle is created.

(Inherited from Control)
CurrentCell CurrentCell CurrentCell CurrentCell

Gets or sets the currently active cell.

CurrentCellAddress CurrentCellAddress CurrentCellAddress CurrentCellAddress

Gets the row and column indexes of the currently active cell.

CurrentRow CurrentRow CurrentRow CurrentRow

Gets the row containing the current cell.

Cursor Cursor Cursor Cursor

Gets or sets the cursor that is displayed when the mouse pointer is over the control.

(Inherited from Control)
DataBindings DataBindings DataBindings DataBindings

Gets the data bindings for the control.

(Inherited from Control)
DataMember DataMember DataMember DataMember

Gets or sets the name of the list or table in the data source for which the DataGridView is displaying data.

DataSource DataSource DataSource DataSource

Gets or sets the data source that the DataGridView is displaying data for.

DefaultCellStyle DefaultCellStyle DefaultCellStyle 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.

DefaultCursor DefaultCursor DefaultCursor DefaultCursor

Gets or sets the default cursor for the control.

(Inherited from Control)
DefaultImeMode DefaultImeMode DefaultImeMode DefaultImeMode

Gets the default Input Method Editor (IME) mode supported by the control.

(Inherited from Control)
DefaultMargin DefaultMargin DefaultMargin DefaultMargin

Gets the space, in pixels, that is specified by default between controls.

(Inherited from Control)
DefaultMaximumSize DefaultMaximumSize DefaultMaximumSize DefaultMaximumSize

Gets the length and height, in pixels, that is specified as the default maximum size of a control.

(Inherited from Control)
DefaultMinimumSize DefaultMinimumSize DefaultMinimumSize DefaultMinimumSize

Gets the length and height, in pixels, that is specified as the default minimum size of a control.

(Inherited from Control)
DefaultPadding DefaultPadding DefaultPadding DefaultPadding

Gets the internal spacing, in pixels, of the contents of a control.

(Inherited from Control)
DefaultSize DefaultSize DefaultSize DefaultSize

Gets the default initial size of the control.

DesignMode DesignMode DesignMode DesignMode

Gets a value that indicates whether the Component is currently in design mode.

(Inherited from Component)
DeviceDpi DeviceDpi DeviceDpi DeviceDpi

Gets the DPI value for the display device where the control is currently being displayed.

(Inherited from Control)
DisplayRectangle DisplayRectangle DisplayRectangle DisplayRectangle

Gets the rectangle that represents the display area of the control.

Disposing Disposing Disposing Disposing

Gets a value indicating whether the base Control class is in the process of disposing.

(Inherited from Control)
Dock Dock Dock 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)
DoubleBuffered DoubleBuffered DoubleBuffered 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)
EditingControl EditingControl EditingControl EditingControl

Gets the control hosted by the current cell, if a cell with an editing control is in edit mode.

EditingPanel EditingPanel EditingPanel EditingPanel

Gets the panel that contains the EditingControl.

EditMode EditMode EditMode EditMode

Gets or sets a value indicating how to begin editing a cell.

Enabled Enabled Enabled Enabled

Gets or sets a value indicating whether the control can respond to user interaction.

(Inherited from Control)
EnableHeadersVisualStyles EnableHeadersVisualStyles EnableHeadersVisualStyles 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.

Events Events Events Events

Gets the list of event handlers that are attached to this Component.

(Inherited from Component)
FirstDisplayedCell FirstDisplayedCell FirstDisplayedCell FirstDisplayedCell

Gets or sets the first cell currently displayed in the DataGridView; typically, this cell is in the upper left corner.

FirstDisplayedScrollingColumnHiddenWidth FirstDisplayedScrollingColumnHiddenWidth FirstDisplayedScrollingColumnHiddenWidth FirstDisplayedScrollingColumnHiddenWidth

Gets the width of the portion of the column that is currently scrolled out of view..

FirstDisplayedScrollingColumnIndex FirstDisplayedScrollingColumnIndex FirstDisplayedScrollingColumnIndex FirstDisplayedScrollingColumnIndex

Gets or sets the index of the column that is the first column displayed on the DataGridView.

FirstDisplayedScrollingRowIndex FirstDisplayedScrollingRowIndex FirstDisplayedScrollingRowIndex FirstDisplayedScrollingRowIndex

Gets or sets the index of the row that is the first row displayed on the DataGridView.

Focused Focused Focused Focused

Gets a value indicating whether the control has input focus.

(Inherited from Control)
Font Font Font Font

Gets or sets the font of the text displayed by the DataGridView.

FontHeight FontHeight FontHeight FontHeight

Gets or sets the height of the font of the control.

(Inherited from Control)
ForeColor ForeColor ForeColor ForeColor

Gets or sets the foreground color of the DataGridView.

GridColor GridColor GridColor GridColor

Gets or sets the color of the grid lines separating the cells of the DataGridView.

Handle Handle Handle Handle

Gets the window handle that the control is bound to.

(Inherited from Control)
HasChildren HasChildren HasChildren HasChildren

Gets a value indicating whether the control contains one or more child controls.

(Inherited from Control)
Height Height Height Height

Gets or sets the height of the control.

(Inherited from Control)
HorizontalScrollBar HorizontalScrollBar HorizontalScrollBar HorizontalScrollBar

Gets the horizontal scroll bar of the control.

HorizontalScrollingOffset HorizontalScrollingOffset HorizontalScrollingOffset HorizontalScrollingOffset

Gets or sets the number of pixels by which the control is scrolled horizontally.

ImeMode ImeMode ImeMode ImeMode

Gets or sets the Input Method Editor (IME) mode of the control.

(Inherited from Control)
ImeModeBase ImeModeBase ImeModeBase ImeModeBase

Gets or sets the IME mode of a control.

(Inherited from Control)
InvokeRequired InvokeRequired InvokeRequired 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)
IsAccessible IsAccessible IsAccessible IsAccessible

Gets or sets a value indicating whether the control is visible to accessibility applications.

(Inherited from Control)
IsCurrentCellDirty IsCurrentCellDirty IsCurrentCellDirty IsCurrentCellDirty

Gets a value indicating whether the current cell has uncommitted changes.

IsCurrentCellInEditMode IsCurrentCellInEditMode IsCurrentCellInEditMode IsCurrentCellInEditMode

Gets a value indicating whether the currently active cell is being edited.

IsCurrentRowDirty IsCurrentRowDirty IsCurrentRowDirty IsCurrentRowDirty

Gets a value indicating whether the current row has uncommitted changes.

IsDisposed IsDisposed IsDisposed IsDisposed

Gets a value indicating whether the control has been disposed of.

(Inherited from Control)
IsHandleCreated IsHandleCreated IsHandleCreated IsHandleCreated

Gets a value indicating whether the control has a handle associated with it.

(Inherited from Control)
IsMirrored IsMirrored IsMirrored IsMirrored

Gets a value indicating whether the control is mirrored.

(Inherited from Control)
Item[Int32, Int32] Item[Int32, Int32] Item[Int32, Int32] Item[Int32, Int32]

Provides an indexer to get or set the cell located at the intersection of the column and row with the specified indexes.

Item[String, Int32] Item[String, Int32] Item[String, Int32] Item[String, Int32]

Provides an indexer to get or set the cell located at the intersection of the row with the specified index and the column with the specified name.

LayoutEngine LayoutEngine LayoutEngine LayoutEngine

Gets a cached instance of the control's layout engine.

(Inherited from Control)
Left Left Left 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)
Location Location Location 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)
Margin Margin Margin Margin

Gets or sets the space between controls.

(Inherited from Control)
MaximumSize MaximumSize MaximumSize MaximumSize

Gets or sets the size that is the upper limit that GetPreferredSize(Size) can specify.

(Inherited from Control)
MinimumSize MinimumSize MinimumSize MinimumSize

Gets or sets the size that is the lower limit that GetPreferredSize(Size) can specify.

(Inherited from Control)
MultiSelect MultiSelect MultiSelect 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.

Name Name Name Name

Gets or sets the name of the control.

(Inherited from Control)
NewRowIndex NewRowIndex NewRowIndex NewRowIndex

Gets the index of the row for new records.

Padding Padding Padding Padding

This property is not relevant for this control.

Parent Parent Parent Parent

Gets or sets the parent container of the control.

(Inherited from Control)
PreferredSize PreferredSize PreferredSize PreferredSize

Gets the size of a rectangular area into which the control can fit.

(Inherited from Control)
ProductName ProductName ProductName ProductName

Gets the product name of the assembly containing the control.

(Inherited from Control)
ProductVersion ProductVersion ProductVersion ProductVersion

Gets the version of the assembly containing the control.

(Inherited from Control)
ReadOnly ReadOnly ReadOnly ReadOnly

Gets or sets a value indicating whether the user can edit the cells of the DataGridView control.

RecreatingHandle RecreatingHandle RecreatingHandle RecreatingHandle

Gets a value indicating whether the control is currently re-creating its handle.

(Inherited from Control)
Region Region Region Region

Gets or sets the window region associated with the control.

(Inherited from Control)
RenderRightToLeft RenderRightToLeft RenderRightToLeft RenderRightToLeft

This property is now obsolete.

(Inherited from Control)
ResizeRedraw ResizeRedraw ResizeRedraw ResizeRedraw

Gets or sets a value indicating whether the control redraws itself when resized.

(Inherited from Control)
Right Right Right 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)
RightToLeft RightToLeft RightToLeft RightToLeft

Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts.

(Inherited from Control)
RowCount RowCount RowCount RowCount

Gets or sets the number of rows displayed in the DataGridView.

RowHeadersBorderStyle RowHeadersBorderStyle RowHeadersBorderStyle RowHeadersBorderStyle

Gets or sets the border style of the row header cells.

RowHeadersDefaultCellStyle RowHeadersDefaultCellStyle RowHeadersDefaultCellStyle RowHeadersDefaultCellStyle

Gets or sets the default style applied to the row header cells.

RowHeadersVisible RowHeadersVisible RowHeadersVisible RowHeadersVisible

Gets or sets a value indicating whether the column that contains row headers is displayed.

RowHeadersWidth RowHeadersWidth RowHeadersWidth RowHeadersWidth

Gets or sets the width, in pixels, of the column that contains the row headers.

RowHeadersWidthSizeMode RowHeadersWidthSizeMode RowHeadersWidthSizeMode 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.

Rows Rows Rows Rows

Gets a collection that contains all the rows in the DataGridView control.

RowsDefaultCellStyle RowsDefaultCellStyle RowsDefaultCellStyle RowsDefaultCellStyle

Gets or sets the default style applied to the row cells of the DataGridView.

RowTemplate RowTemplate RowTemplate RowTemplate

Gets or sets the row that represents the template for all the rows in the control.

ScaleChildren ScaleChildren ScaleChildren ScaleChildren

Gets a value that determines the scaling of child controls.

(Inherited from Control)
ScrollBars ScrollBars ScrollBars ScrollBars

Gets or sets the type of scroll bars to display for the DataGridView control.

SelectedCells SelectedCells SelectedCells SelectedCells

Gets the collection of cells selected by the user.

SelectedColumns SelectedColumns SelectedColumns SelectedColumns

Gets the collection of columns selected by the user.

SelectedRows SelectedRows SelectedRows SelectedRows

Gets the collection of rows selected by the user.

SelectionMode SelectionMode SelectionMode SelectionMode

Gets or sets a value indicating how the cells of the DataGridView can be selected.

ShowCellErrors ShowCellErrors ShowCellErrors ShowCellErrors

Gets or sets a value indicating whether to show cell errors.

ShowCellToolTips ShowCellToolTips ShowCellToolTips ShowCellToolTips

Gets or sets a value indicating whether or not ToolTips will show when the mouse pointer pauses on a cell.

ShowEditingIcon ShowEditingIcon ShowEditingIcon ShowEditingIcon

Gets or sets a value indicating whether or not the editing glyph is visible in the row header of the cell being edited.

ShowFocusCues ShowFocusCues ShowFocusCues ShowFocusCues

Gets a value indicating whether the control should display focus rectangles.

(Inherited from Control)
ShowKeyboardCues ShowKeyboardCues ShowKeyboardCues ShowKeyboardCues

Gets a value indicating whether the user interface is in the appropriate state to show or hide keyboard accelerators.

(Inherited from Control)
ShowRowErrors ShowRowErrors ShowRowErrors ShowRowErrors

Gets or sets a value indicating whether row headers will display error glyphs for each row that contains a data entry error.

Site Site Site Site

Gets or sets the site of the control.

(Inherited from Control)
Size Size Size Size

Gets or sets the height and width of the control.

(Inherited from Control)
SortedColumn SortedColumn SortedColumn SortedColumn

Gets the column by which the DataGridView contents are currently sorted.

SortOrder SortOrder SortOrder SortOrder

Gets a value indicating whether the items in the DataGridView control are sorted in ascending or descending order, or are not sorted.

StandardTab StandardTab StandardTab 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.

TabIndex TabIndex TabIndex TabIndex

Gets or sets the tab order of the control within its container.

(Inherited from Control)
TabStop TabStop TabStop TabStop

Gets or sets a value indicating whether the user can give the focus to this control using the TAB key.

(Inherited from Control)
Tag Tag Tag Tag

Gets or sets the object that contains data about the control.

(Inherited from Control)
Text Text Text Text

Gets or sets the text associated with the control.

Top Top Top 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)
TopLeftHeaderCell TopLeftHeaderCell TopLeftHeaderCell TopLeftHeaderCell

Gets or sets the header cell located in the upper left corner of the DataGridView control.

TopLevelControl TopLevelControl TopLevelControl 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)
UserSetCursor UserSetCursor UserSetCursor UserSetCursor

Gets the default or user-specified value of the Cursor property.

UseWaitCursor UseWaitCursor UseWaitCursor UseWaitCursor

Gets or sets a value indicating whether to use the wait cursor for the current control and all child controls.

(Inherited from Control)
VerticalScrollBar VerticalScrollBar VerticalScrollBar VerticalScrollBar

Gets the vertical scroll bar of the control.

VerticalScrollingOffset VerticalScrollingOffset VerticalScrollingOffset VerticalScrollingOffset

Gets the number of pixels by which the control is scrolled vertically.

VirtualMode VirtualMode VirtualMode VirtualMode

Gets or sets a value indicating whether you have provided your own data-management operations for the DataGridView control.

Visible Visible Visible Visible

Gets or sets a value indicating whether the control and all its child controls are displayed.

(Inherited from Control)
Width Width Width Width

Gets or sets the width of the control.

(Inherited from Control)
WindowTarget WindowTarget WindowTarget WindowTarget

This property is not relevant for this class.

(Inherited from Control)

Methods

AccessibilityNotifyClients(AccessibleEvents, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32)

Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control.

(Inherited from Control)
AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32) AccessibilityNotifyClients(AccessibleEvents, Int32, Int32)

Notifies the accessibility client applications of the specified AccessibleEvents for the specified child control .

(Inherited from Control)
AccessibilityNotifyCurrentCellChanged(Point) AccessibilityNotifyCurrentCellChanged(Point) AccessibilityNotifyCurrentCellChanged(Point) AccessibilityNotifyCurrentCellChanged(Point)

Notifies the accessible client applications when a new cell becomes the current cell.

AdjustColumnHeaderBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, Boolean, Boolean) AdjustColumnHeaderBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, Boolean, Boolean) AdjustColumnHeaderBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, Boolean, Boolean) AdjustColumnHeaderBorderStyle(DataGridViewAdvancedBorderStyle, DataGridViewAdvancedBorderStyle, Boolean, Boolean)

Adjusts the DataGridViewAdvancedBorderStyle for a column header cell of a DataGridView that is currently being painted.

AreAllCellsSelected(Boolean) AreAllCellsSelected(Boolean) AreAllCellsSelected(Boolean) AreAllCellsSelected(Boolean)

Returns a value indicating whether all the DataGridView cells are currently selected.

AutoResizeColumn(Int32) AutoResizeColumn(Int32) AutoResizeColumn(Int32) AutoResizeColumn(Int32)

Adjusts the width of the specified column to fit the contents of all its cells, including the header cell.

AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode) AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode) AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode) AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode)

Adjusts the width of the specified column using the specified size mode.

AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode, Boolean) AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode, Boolean) AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode, Boolean) AutoResizeColumn(Int32, DataGridViewAutoSizeColumnMode, Boolean)

Adjusts the width of the specified column using the specified size mode, optionally calculating the width with the expectation that row heights will subsequently be adjusted.

AutoResizeColumnHeadersHeight() AutoResizeColumnHeadersHeight() AutoResizeColumnHeadersHeight() AutoResizeColumnHeadersHeight()

Adjusts the height of the column headers to fit the contents of the largest column header.

AutoResizeColumnHeadersHeight(Boolean, Boolean) AutoResizeColumnHeadersHeight(Boolean, Boolean) AutoResizeColumnHeadersHeight(Boolean, Boolean) AutoResizeColumnHeadersHeight(Boolean, Boolean)

Adjusts the height of the column headers to fit their contents, optionally calculating the height with the expectation that the column and/or row header widths will subsequently be adjusted.

AutoResizeColumnHeadersHeight(Int32) AutoResizeColumnHeadersHeight(Int32) AutoResizeColumnHeadersHeight(Int32) AutoResizeColumnHeadersHeight(Int32)

Adjusts the height of the column headers based on changes to the contents of the header in the specified column.

AutoResizeColumnHeadersHeight(Int32, Boolean, Boolean) AutoResizeColumnHeadersHeight(Int32, Boolean, Boolean) AutoResizeColumnHeadersHeight(Int32, Boolean, Boolean) AutoResizeColumnHeadersHeight(Int32, Boolean, Boolean)

Adjusts the height of the column headers based on changes to the contents of the header in the specified column, optionally calculating the height with the expectation that the column and/or row header widths will subsequently be adjusted.

AutoResizeColumns() AutoResizeColumns() AutoResizeColumns() AutoResizeColumns()

Adjusts the width of all columns to fit the contents of all their cells, including the header cells.

AutoResizeColumns(DataGridViewAutoSizeColumnsMode) AutoResizeColumns(DataGridViewAutoSizeColumnsMode) AutoResizeColumns(DataGridViewAutoSizeColumnsMode) AutoResizeColumns(DataGridViewAutoSizeColumnsMode)

Adjusts the width of all columns using the specified size mode.

AutoResizeColumns(DataGridViewAutoSizeColumnsMode, Boolean) AutoResizeColumns(DataGridViewAutoSizeColumnsMode, Boolean) AutoResizeColumns(DataGridViewAutoSizeColumnsMode, Boolean) AutoResizeColumns(DataGridViewAutoSizeColumnsMode, Boolean)

Adjusts the width of all columns using the specified size mode, optionally calculating the widths with the expectation that row heights will subsequently be adjusted.

AutoResizeRow(Int32) AutoResizeRow(Int32) AutoResizeRow(Int32) AutoResizeRow(Int32)

Adjusts the height of the specified row to fit the contents of all its cells including the header cell.

AutoResizeRow(Int32, DataGridViewAutoSizeRowMode) AutoResizeRow(Int32, DataGridViewAutoSizeRowMode) AutoResizeRow(Int32, DataGridViewAutoSizeRowMode) AutoResizeRow(Int32, DataGridViewAutoSizeRowMode)

Adjusts the height of the specified row using the specified size mode.

AutoResizeRow(Int32, DataGridViewAutoSizeRowMode, Boolean) AutoResizeRow(Int32, DataGridViewAutoSizeRowMode, Boolean) AutoResizeRow(Int32, DataGridViewAutoSizeRowMode, Boolean) AutoResizeRow(Int32, DataGridViewAutoSizeRowMode, Boolean)

Adjusts the height of the specified row using the specified size mode, optionally calculating the height with the expectation that column widths will subsequently be adjusted.

AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode) AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode) AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode) AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode)

Adjusts the width of the row headers using the specified size mode.

AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) AutoResizeRowHeadersWidth(DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean)

Adjusts the width of the row headers using the specified size mode, optionally calculating the width with the expectation that the row and/or column header widths will subsequently be adjusted.

AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode) AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode) AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode) AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode)

Adjusts the width of the row headers based on changes to the contents of the header in the specified row and using the specified size mode.

AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean) AutoResizeRowHeadersWidth(Int32, DataGridViewRowHeadersWidthSizeMode, Boolean, Boolean)

Adjusts the width of the row headers based on changes to the contents of the header in the specified row and using the specified size mode, optionally calculating the width with the expectation that the row and/or column header widths will subsequently be adjusted.

AutoResizeRows() AutoResizeRows() AutoResizeRows() AutoResizeRows()

Adjusts the heights of all rows to fit the contents of all their cells, including the header cells.

AutoResizeRows(DataGridViewAutoSizeRowsMode) AutoResizeRows(DataGridViewAutoSizeRowsMode) AutoResizeRows(DataGridViewAutoSizeRowsMode) AutoResizeRows(DataGridViewAutoSizeRowsMode)

Adjusts the heights of the rows using the specified size mode value.

AutoResizeRows(DataGridViewAutoSizeRowsMode, Boolean) AutoResizeRows(DataGridViewAutoSizeRowsMode, Boolean) AutoResizeRows(DataGridViewAutoSizeRowsMode, Boolean) AutoResizeRows(DataGridViewAutoSizeRowsMode, Boolean)

Adjusts the heights of all rows using the specified size mode, optionally calculating the heights with the expectation that column widths will subsequently be adjusted.

AutoResizeRows(Int32, Int32, DataGridViewAutoSizeRowMode, Boolean) AutoResizeRows(Int32, Int32, DataGridViewAutoSizeRowMode, Boolean) AutoResizeRows(Int32, Int32, DataGridViewAutoSizeRowMode, Boolean) AutoResizeRows(Int32, Int32, DataGridViewAutoSizeRowMode, Boolean)

Adjusts the heights of the specified rows using the specified size mode, optionally calculating the heights with the expectation that column widths will subsequently be adjusted.

BeginEdit(Boolean) BeginEdit(Boolean) BeginEdit(Boolean) BeginEdit(Boolean)

Puts the current cell in edit mode.

BeginInvoke(Delegate) BeginInvoke(Delegate) BeginInvoke(Delegate) BeginInvoke(Delegate)

Executes the specified delegate asynchronously on the thread that the control's underlying handle was created on.

(Inherited from Control)
BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[]) BeginInvoke(Delegate, Object[])

Executes the specified delegate asynchronously with the specified arguments, on the thread that the control's underlying handle was created on.

(Inherited from Control)
BringToFront() BringToFront() BringToFront() BringToFront()

Brings the control to the front of the z-order.

(Inherited from Control)
CancelEdit() CancelEdit() CancelEdit() CancelEdit()

Cancels edit mode for the currently selected cell and discards any changes.

ClearSelection() ClearSelection() ClearSelection() ClearSelection()

Clears the current selection by unselecting all selected cells.

ClearSelection(Int32, Int32, Boolean) ClearSelection(Int32, Int32, Boolean) ClearSelection(Int32, Int32, Boolean) ClearSelection(Int32, Int32, Boolean)

Cancels the selection of all currently selected cells except the one indicated, optionally ensuring that the indicated cell is selected.

CommitEdit(DataGridViewDataErrorContexts) CommitEdit(DataGridViewDataErrorContexts) CommitEdit(DataGridViewDataErrorContexts) CommitEdit(DataGridViewDataErrorContexts)

Commits changes in the current cell to the data cache without ending edit mode.

Contains(Control) Contains(Control) Contains(Control) Contains(Control)

Retrieves a value indicating whether the specified control is a child of the control.

(Inherited from Control)
CreateAccessibilityInstance() CreateAccessibilityInstance() CreateAccessibilityInstance() CreateAccessibilityInstance()

Creates a new accessible object for the DataGridView.

CreateColumnsInstance() CreateColumnsInstance() CreateColumnsInstance() CreateColumnsInstance()

Creates and returns a new DataGridViewColumnCollection.

CreateControl() CreateControl() CreateControl() CreateControl()

Forces the creation of the visible control, including the creation of the handle and any visible child controls.

(Inherited from Control)
CreateControlsInstance() CreateControlsInstance() CreateControlsInstance() CreateControlsInstance()

Creates and returns a new Control.ControlCollection that can be cast to type DataGridView.DataGridViewControlCollection.

CreateGraphics() CreateGraphics() CreateGraphics() CreateGraphics()

Creates the Graphics for the control.

(Inherited from Control)
CreateHandle() CreateHandle() CreateHandle() CreateHandle()

Creates a handle for the control.

(Inherited from Control)
CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type) CreateObjRef(Type)

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

(Inherited from MarshalByRefObject)
CreateRowsInstance() CreateRowsInstance() CreateRowsInstance() CreateRowsInstance()

Creates and returns a new DataGridViewRowCollection.

DefWndProc(Message) DefWndProc(Message) DefWndProc(Message) DefWndProc(Message)

Sends the specified message to the default window procedure.

(Inherited from Control)
DestroyHandle() DestroyHandle() DestroyHandle() DestroyHandle()

Destroys the handle associated with the control.

(Inherited from Control)
DisplayedColumnCount(Boolean) DisplayedColumnCount(Boolean) DisplayedColumnCount(Boolean) DisplayedColumnCount(Boolean)

Returns the number of columns displayed to the user.

DisplayedRowCount(Boolean) DisplayedRowCount(Boolean) DisplayedRowCount(Boolean) DisplayedRowCount(Boolean)

Returns the number of rows displayed to the user.

Dispose() Dispose() Dispose() Dispose()

Releases all resources used by the Component.

(Inherited from Component)
Dispose(Boolean) Dispose(Boolean) Dispose(Boolean) Dispose(Boolean)

Releases the unmanaged resources used by the Control and its child controls and optionally releases the managed resources.

DoDragDrop(Object, DragDropEffects) DoDragDrop(Object, DragDropEffects) DoDragDrop(Object, DragDropEffects) DoDragDrop(Object, DragDropEffects)

Begins a drag-and-drop operation.

(Inherited from Control)
DrawToBitmap(Bitmap, Rectangle) DrawToBitmap(Bitmap, Rectangle) DrawToBitmap(Bitmap, Rectangle) DrawToBitmap(Bitmap, Rectangle)

Supports rendering to the specified bitmap.

(Inherited from Control)
EndEdit() EndEdit() EndEdit() EndEdit()

Commits and ends the edit operation on the current cell using the default error context.

EndEdit(DataGridViewDataErrorContexts) EndEdit(DataGridViewDataErrorContexts) EndEdit(DataGridViewDataErrorContexts) EndEdit(DataGridViewDataErrorContexts)

Commits and ends the edit operation on the current cell using the specified error context.

EndInvoke(IAsyncResult) EndInvoke(IAsyncResult) EndInvoke(IAsyncResult) EndInvoke(IAsyncResult)

Retrieves the return value of the asynchronous operation represented by the IAsyncResult passed.

(Inherited from Control)
Equals(Object) Equals(Object) Equals(Object) Equals(Object)

Determines whether the specified object is equal to the current object.

(Inherited from Object)
FindForm() FindForm() FindForm() FindForm()

Retrieves the form that the control is on.

(Inherited from Control)
Focus() Focus() Focus() Focus()

Sets input focus to the control.

(Inherited from Control)
GetAccessibilityObjectById(Int32) GetAccessibilityObjectById(Int32) GetAccessibilityObjectById(Int32) GetAccessibilityObjectById(Int32)

Retrieves the specified AccessibleObject.

GetAutoSizeMode() GetAutoSizeMode() GetAutoSizeMode() GetAutoSizeMode()

Retrieves a value indicating how a control will behave when its AutoSize property is enabled.

(Inherited from Control)
GetCellCount(DataGridViewElementStates) GetCellCount(DataGridViewElementStates) GetCellCount(DataGridViewElementStates) GetCellCount(DataGridViewElementStates)

Gets the number of cells that satisfy the provided filter.

GetCellDisplayRectangle(Int32, Int32, Boolean) GetCellDisplayRectangle(Int32, Int32, Boolean) GetCellDisplayRectangle(Int32, Int32, Boolean) GetCellDisplayRectangle(Int32, Int32, Boolean)

Returns the rectangle that represents the display area for a cell.

GetChildAtPoint(Point) GetChildAtPoint(Point) GetChildAtPoint(Point) GetChildAtPoint(Point)

Retrieves the child control that is located at the specified coordinates.

(Inherited from Control)
GetChildAtPoint(Point, GetChildAtPointSkip) GetChildAtPoint(Point, GetChildAtPointSkip) GetChildAtPoint(Point, GetChildAtPointSkip) GetChildAtPoint(Point, GetChildAtPointSkip)

Retrieves the child control that is located at the specified coordinates, specifying whether to ignore child controls of a certain type.

(Inherited from Control)
GetClipboardContent() GetClipboardContent() GetClipboardContent() GetClipboardContent()

Retrieves the formatted values that represent the contents of the selected cells for copying to the Clipboard.

GetColumnDisplayRectangle(Int32, Boolean) GetColumnDisplayRectangle(Int32, Boolean) GetColumnDisplayRectangle(Int32, Boolean) GetColumnDisplayRectangle(Int32, Boolean)

Returns the rectangle that represents the display area for a column, as determined by the column index.

GetContainerControl() GetContainerControl() GetContainerControl() GetContainerControl()

Returns the next ContainerControl up the control's chain of parent controls.

(Inherited from Control)
GetHashCode() GetHashCode() GetHashCode() GetHashCode()

Serves as the default hash function.

(Inherited from Object)
GetLifetimeService() GetLifetimeService() GetLifetimeService() GetLifetimeService()

Retrieves the current lifetime service object that controls the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
GetNextControl(Control, Boolean) GetNextControl(Control, Boolean) GetNextControl(Control, Boolean) GetNextControl(Control, Boolean)

Retrieves the next control forward or back in the tab order of child controls.

(Inherited from Control)
GetPreferredSize(Size) GetPreferredSize(Size) GetPreferredSize(Size) GetPreferredSize(Size)

Retrieves the size of a rectangular area into which a control can be fitted.

(Inherited from Control)
GetRowDisplayRectangle(Int32, Boolean) GetRowDisplayRectangle(Int32, Boolean) GetRowDisplayRectangle(Int32, Boolean) GetRowDisplayRectangle(Int32, Boolean)

Returns the rectangle that represents the display area for a row, as determined by the row index.

GetScaledBounds(Rectangle, SizeF, BoundsSpecified) GetScaledBounds(Rectangle, SizeF, BoundsSpecified) GetScaledBounds(Rectangle, SizeF, BoundsSpecified) GetScaledBounds(Rectangle, SizeF, BoundsSpecified)

Retrieves the bounds within which the control is scaled.

(Inherited from Control)
GetService(Type) GetService(Type) GetService(Type) GetService(Type)

Returns an object that represents a service provided by the Component or by its Container.

(Inherited from Component)
GetStyle(ControlStyles) GetStyle(ControlStyles) GetStyle(ControlStyles) GetStyle(ControlStyles)

Retrieves the value of the specified control style bit for the control.

(Inherited from Control)
GetTopLevel() GetTopLevel() GetTopLevel() GetTopLevel()

Determines if the control is a top-level control.

(Inherited from Control)
GetType() GetType() GetType() GetType()

Gets the Type of the current instance.

(Inherited from Object)
Hide() Hide() Hide() Hide()

Conceals the control from the user.

(Inherited from Control)
HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32) HitTest(Int32, Int32)

Returns location information, such as row and column indices, given x- and y-coordinates.

InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService() InitializeLifetimeService()

Obtains a lifetime service object to control the lifetime policy for this instance.

(Inherited from MarshalByRefObject)
InitLayout() InitLayout() InitLayout() InitLayout()

Called after the control has been added to another container.

(Inherited from Control)
Invalidate() Invalidate() Invalidate() Invalidate()

Invalidates the entire surface of the control and causes the control to be redrawn.

(Inherited from Control)
Invalidate(Boolean) Invalidate(Boolean) Invalidate(Boolean) Invalidate(Boolean)

Invalidates a specific region of the control and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

(Inherited from Control)
Invalidate(Rectangle) Invalidate(Rectangle) Invalidate(Rectangle) Invalidate(Rectangle)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Inherited from Control)
Invalidate(Rectangle, Boolean) Invalidate(Rectangle, Boolean) Invalidate(Rectangle, Boolean) Invalidate(Rectangle, Boolean)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

(Inherited from Control)
Invalidate(Region) Invalidate(Region) Invalidate(Region) Invalidate(Region)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control.

(Inherited from Control)
Invalidate(Region, Boolean) Invalidate(Region, Boolean) Invalidate(Region, Boolean) Invalidate(Region, Boolean)

Invalidates the specified region of the control (adds it to the control's update region, which is the area that will be repainted at the next paint operation), and causes a paint message to be sent to the control. Optionally, invalidates the child controls assigned to the control.

(Inherited from Control)
InvalidateCell(DataGridViewCell) InvalidateCell(DataGridViewCell) InvalidateCell(DataGridViewCell) InvalidateCell(DataGridViewCell)

Invalidates the specified cell of the DataGridView, forcing it to be repainted.

InvalidateCell(Int32, Int32) InvalidateCell(Int32, Int32) InvalidateCell(Int32, Int32) InvalidateCell(Int32, Int32)

Invalidates the cell with the specified row and column indexes, forcing it to be repainted.

InvalidateColumn(Int32) InvalidateColumn(Int32) InvalidateColumn(Int32) InvalidateColumn(Int32)

Invalidates the specified column of the DataGridView, forcing it to be repainted.

InvalidateRow(Int32) InvalidateRow(Int32) InvalidateRow(Int32) InvalidateRow(Int32)

Invalidates the specified row of the DataGridView, forcing it to be repainted.

Invoke(Delegate) Invoke(Delegate) Invoke(Delegate) Invoke(Delegate)

Executes the specified delegate on the thread that owns the control's underlying window handle.

(Inherited from Control)
Invoke(Delegate, Object[]) Invoke(Delegate, Object[]) Invoke(Delegate, Object[]) Invoke(Delegate, Object[])

Executes the specified delegate, on the thread that owns the control's underlying window handle, with the specified list of arguments.

(Inherited from Control)
InvokeGotFocus(Control, EventArgs) InvokeGotFocus(Control, EventArgs) InvokeGotFocus(Control, EventArgs) InvokeGotFocus(Control, EventArgs)

Raises the GotFocus event for the specified control.

(Inherited from Control)
InvokeLostFocus(Control, EventArgs) InvokeLostFocus(Control, EventArgs) InvokeLostFocus(Control, EventArgs) InvokeLostFocus(Control, EventArgs)

Raises the LostFocus event for the specified control.

(Inherited from Control)
InvokeOnClick(Control, EventArgs) InvokeOnClick(Control, EventArgs) InvokeOnClick(Control, EventArgs) InvokeOnClick(Control, EventArgs)

Raises the Click event for the specified control.

(Inherited from Control)
InvokePaint(Control, PaintEventArgs) InvokePaint(Control, PaintEventArgs) InvokePaint(Control, PaintEventArgs) InvokePaint(Control, PaintEventArgs)

Raises the Paint event for the specified control.

(Inherited from Control)
InvokePaintBackground(Control, PaintEventArgs) InvokePaintBackground(Control, PaintEventArgs) InvokePaintBackground(Control, PaintEventArgs) InvokePaintBackground(Control, PaintEventArgs)

Raises the PaintBackground event for the specified control.

(Inherited from Control)
IsInputChar(Char) IsInputChar(Char) IsInputChar(Char) IsInputChar(Char)

Determines whether a character is an input character that the DataGridView recognizes.

IsInputKey(Keys) IsInputKey(Keys) IsInputKey(Keys) IsInputKey(Keys)

Determines whether the specified key is a regular input key or a special key that requires preprocessing.

LogicalToDeviceUnits(Int32) LogicalToDeviceUnits(Int32) LogicalToDeviceUnits(Int32) LogicalToDeviceUnits(Int32)

Converts a Logical DPI value to it's equivalent DeviceUnit DPI value.

(Inherited from Control)
MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

Creates a shallow copy of the current Object.

(Inherited from Object)
MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean) MemberwiseClone(Boolean)

Creates a shallow copy of the current MarshalByRefObject object.

(Inherited from MarshalByRefObject)
NotifyCurrentCellDirty(Boolean) NotifyCurrentCellDirty(Boolean) NotifyCurrentCellDirty(Boolean) NotifyCurrentCellDirty(Boolean)

Notifies the DataGridView that the current cell has uncommitted changes.

NotifyInvalidate(Rectangle) NotifyInvalidate(Rectangle) NotifyInvalidate(Rectangle) NotifyInvalidate(Rectangle)

Raises the Invalidated event with a specified region of the control to invalidate.

(Inherited from Control)
OnAllowUserToAddRowsChanged(EventArgs) OnAllowUserToAddRowsChanged(EventArgs) OnAllowUserToAddRowsChanged(EventArgs) OnAllowUserToAddRowsChanged(EventArgs)

Raises the AllowUserToAddRowsChanged event.

OnAllowUserToDeleteRowsChanged(EventArgs) OnAllowUserToDeleteRowsChanged(EventArgs) OnAllowUserToDeleteRowsChanged(EventArgs) OnAllowUserToDeleteRowsChanged(EventArgs)

Raises the AllowUserToDeleteRowsChanged event.

OnAllowUserToOrderColumnsChanged(EventArgs) OnAllowUserToOrderColumnsChanged(EventArgs) OnAllowUserToOrderColumnsChanged(EventArgs) OnAllowUserToOrderColumnsChanged(EventArgs)

Raises the AllowUserToOrderColumnsChanged event.

OnAllowUserToResizeColumnsChanged(EventArgs) OnAllowUserToResizeColumnsChanged(EventArgs) OnAllowUserToResizeColumnsChanged(EventArgs) OnAllowUserToResizeColumnsChanged(EventArgs)

Raises the AllowUserToResizeColumnsChanged event.

OnAllowUserToResizeRowsChanged(EventArgs) OnAllowUserToResizeRowsChanged(EventArgs) OnAllowUserToResizeRowsChanged(EventArgs) OnAllowUserToResizeRowsChanged(EventArgs)

Raises the AllowUserToResizeRowsChanged event.

OnAlternatingRowsDefaultCellStyleChanged(EventArgs) OnAlternatingRowsDefaultCellStyleChanged(EventArgs) OnAlternatingRowsDefaultCellStyleChanged(EventArgs) OnAlternatingRowsDefaultCellStyleChanged(EventArgs)

Raises the AlternatingRowsDefaultCellStyleChanged event.

OnAutoGenerateColumnsChanged(EventArgs) OnAutoGenerateColumnsChanged(EventArgs) OnAutoGenerateColumnsChanged(EventArgs) OnAutoGenerateColumnsChanged(EventArgs)

Raises the AutoGenerateColumnsChanged event.

OnAutoSizeChanged(EventArgs) OnAutoSizeChanged(EventArgs) OnAutoSizeChanged(EventArgs) OnAutoSizeChanged(EventArgs)

Raises the AutoSizeChanged event.

(Inherited from Control)
OnAutoSizeColumnModeChanged(DataGridViewAutoSizeColumnModeEventArgs) OnAutoSizeColumnModeChanged(DataGridViewAutoSizeColumnModeEventArgs) OnAutoSizeColumnModeChanged(DataGridViewAutoSizeColumnModeEventArgs) OnAutoSizeColumnModeChanged(DataGridViewAutoSizeColumnModeEventArgs)

Raises the AutoSizeColumnModeChanged event.

OnAutoSizeColumnsModeChanged(DataGridViewAutoSizeColumnsModeEventArgs) OnAutoSizeColumnsModeChanged(DataGridViewAutoSizeColumnsModeEventArgs) OnAutoSizeColumnsModeChanged(DataGridViewAutoSizeColumnsModeEventArgs) OnAutoSizeColumnsModeChanged(DataGridViewAutoSizeColumnsModeEventArgs)

Raises the AutoSizeColumnsModeChanged event.

OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs) OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs) OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs) OnAutoSizeRowsModeChanged(DataGridViewAutoSizeModeEventArgs)

Raises the AutoSizeRowsModeChanged event.

OnBackColorChanged(EventArgs) OnBackColorChanged(EventArgs) OnBackColorChanged(EventArgs) OnBackColorChanged(EventArgs)

Raises the BackColorChanged event.

(Inherited from Control)
OnBackgroundColorChanged(EventArgs) OnBackgroundColorChanged(EventArgs) OnBackgroundColorChanged(EventArgs) OnBackgroundColorChanged(EventArgs)

Raises the BackgroundColorChanged event.

OnBackgroundImageChanged(EventArgs) OnBackgroundImageChanged(EventArgs) OnBackgroundImageChanged(EventArgs) OnBackgroundImageChanged(EventArgs)

Raises the BackgroundImageChanged event.

(Inherited from Control)
OnBackgroundImageLayoutChanged(EventArgs) OnBackgroundImageLayoutChanged(EventArgs) OnBackgroundImageLayoutChanged(EventArgs) OnBackgroundImageLayoutChanged(EventArgs)

Raises the BackgroundImageLayoutChanged event.

(Inherited from Control)
OnBindingContextChanged(EventArgs) OnBindingContextChanged(EventArgs) OnBindingContextChanged(EventArgs) OnBindingContextChanged(EventArgs)

Raises the BindingContextChanged event.

OnBorderStyleChanged(EventArgs) OnBorderStyleChanged(EventArgs) OnBorderStyleChanged(EventArgs) OnBorderStyleChanged(EventArgs)

Raises the BorderStyleChanged event.

OnCancelRowEdit(QuestionEventArgs) OnCancelRowEdit(QuestionEventArgs) OnCancelRowEdit(QuestionEventArgs) OnCancelRowEdit(QuestionEventArgs)

Raises the CancelRowEdit event.

OnCausesValidationChanged(EventArgs) OnCausesValidationChanged(EventArgs) OnCausesValidationChanged(EventArgs) OnCausesValidationChanged(EventArgs)

Raises the CausesValidationChanged event.

(Inherited from Control)
OnCellBeginEdit(DataGridViewCellCancelEventArgs) OnCellBeginEdit(DataGridViewCellCancelEventArgs) OnCellBeginEdit(DataGridViewCellCancelEventArgs) OnCellBeginEdit(DataGridViewCellCancelEventArgs)

Raises the CellBeginEdit event.

OnCellBorderStyleChanged(EventArgs) OnCellBorderStyleChanged(EventArgs) OnCellBorderStyleChanged(EventArgs) OnCellBorderStyleChanged(EventArgs)

Raises the CellBorderStyleChanged event.

OnCellClick(DataGridViewCellEventArgs) OnCellClick(DataGridViewCellEventArgs) OnCellClick(DataGridViewCellEventArgs) OnCellClick(DataGridViewCellEventArgs)

Raises the CellClick event.

OnCellContentClick(DataGridViewCellEventArgs) OnCellContentClick(DataGridViewCellEventArgs) OnCellContentClick(DataGridViewCellEventArgs) OnCellContentClick(DataGridViewCellEventArgs)

Raises the CellContentClick event.

OnCellContentDoubleClick(DataGridViewCellEventArgs) OnCellContentDoubleClick(DataGridViewCellEventArgs) OnCellContentDoubleClick(DataGridViewCellEventArgs) OnCellContentDoubleClick(DataGridViewCellEventArgs)

Raises the CellContentDoubleClick event.

OnCellContextMenuStripChanged(DataGridViewCellEventArgs) OnCellContextMenuStripChanged(DataGridViewCellEventArgs) OnCellContextMenuStripChanged(DataGridViewCellEventArgs) OnCellContextMenuStripChanged(DataGridViewCellEventArgs)

Raises the CellContextMenuStripChanged event.

OnCellContextMenuStripNeeded(DataGridViewCellContextMenuStripNeededEventArgs) OnCellContextMenuStripNeeded(DataGridViewCellContextMenuStripNeededEventArgs) OnCellContextMenuStripNeeded(DataGridViewCellContextMenuStripNeededEventArgs) OnCellContextMenuStripNeeded(DataGridViewCellContextMenuStripNeededEventArgs)

Raises the CellContextMenuStripNeeded event.

OnCellDoubleClick(DataGridViewCellEventArgs) OnCellDoubleClick(DataGridViewCellEventArgs) OnCellDoubleClick(DataGridViewCellEventArgs) OnCellDoubleClick(DataGridViewCellEventArgs)

Raises the CellDoubleClick event.

OnCellEndEdit(DataGridViewCellEventArgs) OnCellEndEdit(DataGridViewCellEventArgs) OnCellEndEdit(DataGridViewCellEventArgs) OnCellEndEdit(DataGridViewCellEventArgs)

Raises the CellEndEdit event.

OnCellEnter(DataGridViewCellEventArgs) OnCellEnter(DataGridViewCellEventArgs) OnCellEnter(DataGridViewCellEventArgs) OnCellEnter(DataGridViewCellEventArgs)

Raises the CellEnter event.

OnCellErrorTextChanged(DataGridViewCellEventArgs) OnCellErrorTextChanged(DataGridViewCellEventArgs) OnCellErrorTextChanged(DataGridViewCellEventArgs) OnCellErrorTextChanged(DataGridViewCellEventArgs)

Raises the CellErrorTextChanged event.

OnCellErrorTextNeeded(DataGridViewCellErrorTextNeededEventArgs) OnCellErrorTextNeeded(DataGridViewCellErrorTextNeededEventArgs) OnCellErrorTextNeeded(DataGridViewCellErrorTextNeededEventArgs) OnCellErrorTextNeeded(DataGridViewCellErrorTextNeededEventArgs)

Raises the CellErrorTextNeeded event.

OnCellFormatting(DataGridViewCellFormattingEventArgs) OnCellFormatting(DataGridViewCellFormattingEventArgs) OnCellFormatting(DataGridViewCellFormattingEventArgs) OnCellFormatting(DataGridViewCellFormattingEventArgs)

Raises the CellFormatting event.

OnCellLeave(DataGridViewCellEventArgs) OnCellLeave(DataGridViewCellEventArgs) OnCellLeave(DataGridViewCellEventArgs) OnCellLeave(DataGridViewCellEventArgs)

Raises the CellLeave event.

OnCellMouseClick(DataGridViewCellMouseEventArgs) OnCellMouseClick(DataGridViewCellMouseEventArgs) OnCellMouseClick(DataGridViewCellMouseEventArgs) OnCellMouseClick(DataGridViewCellMouseEventArgs)

Raises the CellMouseClick event.

OnCellMouseDoubleClick(DataGridViewCellMouseEventArgs) OnCellMouseDoubleClick(DataGridViewCellMouseEventArgs) OnCellMouseDoubleClick(DataGridViewCellMouseEventArgs) OnCellMouseDoubleClick(DataGridViewCellMouseEventArgs)

Raises the CellMouseDoubleClick event.

OnCellMouseDown(DataGridViewCellMouseEventArgs) OnCellMouseDown(DataGridViewCellMouseEventArgs) OnCellMouseDown(DataGridViewCellMouseEventArgs) OnCellMouseDown(DataGridViewCellMouseEventArgs)

Raises the CellMouseDown event.

OnCellMouseEnter(DataGridViewCellEventArgs) OnCellMouseEnter(DataGridViewCellEventArgs) OnCellMouseEnter(DataGridViewCellEventArgs) OnCellMouseEnter(DataGridViewCellEventArgs)

Raises the CellMouseEnter event.

OnCellMouseLeave(DataGridViewCellEventArgs) OnCellMouseLeave(DataGridViewCellEventArgs) OnCellMouseLeave(DataGridViewCellEventArgs) OnCellMouseLeave(DataGridViewCellEventArgs)

Raises the CellMouseLeave event.

OnCellMouseMove(DataGridViewCellMouseEventArgs) OnCellMouseMove(DataGridViewCellMouseEventArgs) OnCellMouseMove(DataGridViewCellMouseEventArgs) OnCellMouseMove(DataGridViewCellMouseEventArgs)

Raises the CellMouseMove event.

OnCellMouseUp(DataGridViewCellMouseEventArgs) OnCellMouseUp(DataGridViewCellMouseEventArgs) OnCellMouseUp(DataGridViewCellMouseEventArgs) OnCellMouseUp(DataGridViewCellMouseEventArgs)

Raises the CellMouseUp event.

OnCellPainting(DataGridViewCellPaintingEventArgs) OnCellPainting(DataGridViewCellPaintingEventArgs) OnCellPainting(DataGridViewCellPaintingEventArgs) OnCellPainting(DataGridViewCellPaintingEventArgs)

Raises the CellPainting event.

OnCellParsing(DataGridViewCellParsingEventArgs) OnCellParsing(DataGridViewCellParsingEventArgs) OnCellParsing(DataGridViewCellParsingEventArgs) OnCellParsing(DataGridViewCellParsingEventArgs)

Raises the CellParsing event.

OnCellStateChanged(DataGridViewCellStateChangedEventArgs) OnCellStateChanged(DataGridViewCellStateChangedEventArgs) OnCellStateChanged(DataGridViewCellStateChangedEventArgs) OnCellStateChanged(DataGridViewCellStateChangedEventArgs)

Raises the CellStateChanged event.

OnCellStyleChanged(DataGridViewCellEventArgs) OnCellStyleChanged(DataGridViewCellEventArgs) OnCellStyleChanged(DataGridViewCellEventArgs) OnCellStyleChanged(DataGridViewCellEventArgs)

Raises the CellStyleChanged event.

OnCellStyleContentChanged(DataGridViewCellStyleContentChangedEventArgs) OnCellStyleContentChanged(DataGridViewCellStyleContentChangedEventArgs) OnCellStyleContentChanged(DataGridViewCellStyleContentChangedEventArgs) OnCellStyleContentChanged(DataGridViewCellStyleContentChangedEventArgs)

Raises the CellStyleContentChanged event.

OnCellToolTipTextChanged(DataGridViewCellEventArgs) OnCellToolTipTextChanged(DataGridViewCellEventArgs) OnCellToolTipTextChanged(DataGridViewCellEventArgs) OnCellToolTipTextChanged(DataGridViewCellEventArgs)

Raises the CellToolTipTextChanged event.

OnCellToolTipTextNeeded(DataGridViewCellToolTipTextNeededEventArgs) OnCellToolTipTextNeeded(DataGridViewCellToolTipTextNeededEventArgs) OnCellToolTipTextNeeded(DataGridViewCellToolTipTextNeededEventArgs) OnCellToolTipTextNeeded(DataGridViewCellToolTipTextNeededEventArgs)

Raises the CellToolTipTextNeeded event.

OnCellValidated(DataGridViewCellEventArgs) OnCellValidated(DataGridViewCellEventArgs) OnCellValidated(DataGridViewCellEventArgs) OnCellValidated(DataGridViewCellEventArgs)

Raises the CellValidated event.

OnCellValidating(DataGridViewCellValidatingEventArgs) OnCellValidating(DataGridViewCellValidatingEventArgs) OnCellValidating(DataGridViewCellValidatingEventArgs) OnCellValidating(DataGridViewCellValidatingEventArgs)

Raises the CellValidating event.

OnCellValueChanged(DataGridViewCellEventArgs) OnCellValueChanged(DataGridViewCellEventArgs) OnCellValueChanged(DataGridViewCellEventArgs) OnCellValueChanged(DataGridViewCellEventArgs)

Raises the CellValueChanged event.

OnCellValueNeeded(DataGridViewCellValueEventArgs) OnCellValueNeeded(DataGridViewCellValueEventArgs) OnCellValueNeeded(DataGridViewCellValueEventArgs) OnCellValueNeeded(DataGridViewCellValueEventArgs)

Raises the CellValueNeeded event.

OnCellValuePushed(DataGridViewCellValueEventArgs) OnCellValuePushed(DataGridViewCellValueEventArgs) OnCellValuePushed(DataGridViewCellValueEventArgs) OnCellValuePushed(DataGridViewCellValueEventArgs)

Raises the CellValuePushed event.

OnChangeUICues(UICuesEventArgs) OnChangeUICues(UICuesEventArgs) OnChangeUICues(UICuesEventArgs) OnChangeUICues(UICuesEventArgs)

Raises the ChangeUICues event.

(Inherited from Control)
OnClick(EventArgs) OnClick(EventArgs) OnClick(EventArgs) OnClick(EventArgs)

Raises the Click event.

(Inherited from Control)
OnClientSizeChanged(EventArgs) OnClientSizeChanged(EventArgs) OnClientSizeChanged(EventArgs) OnClientSizeChanged(EventArgs)

Raises the ClientSizeChanged event.

(Inherited from Control)
OnColumnAdded(DataGridViewColumnEventArgs) OnColumnAdded(DataGridViewColumnEventArgs) OnColumnAdded(DataGridViewColumnEventArgs) OnColumnAdded(DataGridViewColumnEventArgs)

Raises the ColumnAdded event.

OnColumnContextMenuStripChanged(DataGridViewColumnEventArgs) OnColumnContextMenuStripChanged(DataGridViewColumnEventArgs) OnColumnContextMenuStripChanged(DataGridViewColumnEventArgs) OnColumnContextMenuStripChanged(DataGridViewColumnEventArgs)

Raises the ColumnContextMenuStripChanged event.

OnColumnDataPropertyNameChanged(DataGridViewColumnEventArgs) OnColumnDataPropertyNameChanged(DataGridViewColumnEventArgs) OnColumnDataPropertyNameChanged(DataGridViewColumnEventArgs) OnColumnDataPropertyNameChanged(DataGridViewColumnEventArgs)

Raises the ColumnDataPropertyNameChanged event.

OnColumnDefaultCellStyleChanged(DataGridViewColumnEventArgs) OnColumnDefaultCellStyleChanged(DataGridViewColumnEventArgs) OnColumnDefaultCellStyleChanged(DataGridViewColumnEventArgs) OnColumnDefaultCellStyleChanged(DataGridViewColumnEventArgs)

Raises the ColumnDefaultCellStyleChanged event.

OnColumnDisplayIndexChanged(DataGridViewColumnEventArgs) OnColumnDisplayIndexChanged(DataGridViewColumnEventArgs) OnColumnDisplayIndexChanged(DataGridViewColumnEventArgs) OnColumnDisplayIndexChanged(DataGridViewColumnEventArgs)

Raises the ColumnDisplayIndexChanged event.

OnColumnDividerDoubleClick(DataGridViewColumnDividerDoubleClickEventArgs) OnColumnDividerDoubleClick(DataGridViewColumnDividerDoubleClickEventArgs) OnColumnDividerDoubleClick(DataGridViewColumnDividerDoubleClickEventArgs) OnColumnDividerDoubleClick(DataGridViewColumnDividerDoubleClickEventArgs)

Raises the ColumnDividerDoubleClick event.

OnColumnDividerWidthChanged(DataGridViewColumnEventArgs) OnColumnDividerWidthChanged(DataGridViewColumnEventArgs) OnColumnDividerWidthChanged(DataGridViewColumnEventArgs) OnColumnDividerWidthChanged(DataGridViewColumnEventArgs)

Raises the ColumnDividerWidthChanged event.

OnColumnHeaderCellChanged(DataGridViewColumnEventArgs) OnColumnHeaderCellChanged(DataGridViewColumnEventArgs) OnColumnHeaderCellChanged(DataGridViewColumnEventArgs) OnColumnHeaderCellChanged(DataGridViewColumnEventArgs)

Raises the ColumnHeaderCellChanged event.

OnColumnHeaderMouseClick(DataGridViewCellMouseEventArgs) OnColumnHeaderMouseClick(DataGridViewCellMouseEventArgs) OnColumnHeaderMouseClick(DataGridViewCellMouseEventArgs) OnColumnHeaderMouseClick(DataGridViewCellMouseEventArgs)

Raises the ColumnHeaderMouseClick event.

OnColumnHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs) OnColumnHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs) OnColumnHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs) OnColumnHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs)

Raises the ColumnHeaderMouseDoubleClick event.

OnColumnHeadersBorderStyleChanged(EventArgs) OnColumnHeadersBorderStyleChanged(EventArgs) OnColumnHeadersBorderStyleChanged(EventArgs) OnColumnHeadersBorderStyleChanged(EventArgs)

Raises the ColumnHeadersBorderStyleChanged event.

OnColumnHeadersDefaultCellStyleChanged(EventArgs) OnColumnHeadersDefaultCellStyleChanged(EventArgs) OnColumnHeadersDefaultCellStyleChanged(EventArgs) OnColumnHeadersDefaultCellStyleChanged(EventArgs)

Raises the ColumnHeadersDefaultCellStyleChanged event.

OnColumnHeadersHeightChanged(EventArgs) OnColumnHeadersHeightChanged(EventArgs) OnColumnHeadersHeightChanged(EventArgs) OnColumnHeadersHeightChanged(EventArgs)

Raises the ColumnHeadersHeightChanged event.

OnColumnHeadersHeightSizeModeChanged(DataGridViewAutoSizeModeEventArgs) OnColumnHeadersHeightSizeModeChanged(DataGridViewAutoSizeModeEventArgs) OnColumnHeadersHeightSizeModeChanged(DataGridViewAutoSizeModeEventArgs) OnColumnHeadersHeightSizeModeChanged(DataGridViewAutoSizeModeEventArgs)

Raises the ColumnHeadersHeightSizeModeChanged event.

OnColumnMinimumWidthChanged(DataGridViewColumnEventArgs) OnColumnMinimumWidthChanged(DataGridViewColumnEventArgs) OnColumnMinimumWidthChanged(DataGridViewColumnEventArgs) OnColumnMinimumWidthChanged(DataGridViewColumnEventArgs)

Raises the ColumnMinimumWidthChanged event.

OnColumnNameChanged(DataGridViewColumnEventArgs) OnColumnNameChanged(DataGridViewColumnEventArgs) OnColumnNameChanged(DataGridViewColumnEventArgs) OnColumnNameChanged(DataGridViewColumnEventArgs)

Raises the ColumnNameChanged event.

OnColumnRemoved(DataGridViewColumnEventArgs) OnColumnRemoved(DataGridViewColumnEventArgs) OnColumnRemoved(DataGridViewColumnEventArgs) OnColumnRemoved(DataGridViewColumnEventArgs)

Raises the ColumnRemoved event.

OnColumnSortModeChanged(DataGridViewColumnEventArgs) OnColumnSortModeChanged(DataGridViewColumnEventArgs) OnColumnSortModeChanged(DataGridViewColumnEventArgs) OnColumnSortModeChanged(DataGridViewColumnEventArgs)

Raises the ColumnSortModeChanged event.

OnColumnStateChanged(DataGridViewColumnStateChangedEventArgs) OnColumnStateChanged(DataGridViewColumnStateChangedEventArgs) OnColumnStateChanged(DataGridViewColumnStateChangedEventArgs) OnColumnStateChanged(DataGridViewColumnStateChangedEventArgs)

Raises the ColumnStateChanged event.

OnColumnToolTipTextChanged(DataGridViewColumnEventArgs) OnColumnToolTipTextChanged(DataGridViewColumnEventArgs) OnColumnToolTipTextChanged(DataGridViewColumnEventArgs) OnColumnToolTipTextChanged(DataGridViewColumnEventArgs)

Raises the ColumnToolTipTextChanged event.

OnColumnWidthChanged(DataGridViewColumnEventArgs) OnColumnWidthChanged(DataGridViewColumnEventArgs) OnColumnWidthChanged(DataGridViewColumnEventArgs) OnColumnWidthChanged(DataGridViewColumnEventArgs)

Raises the ColumnWidthChanged event.

OnContextMenuChanged(EventArgs) OnContextMenuChanged(EventArgs) OnContextMenuChanged(EventArgs) OnContextMenuChanged(EventArgs)

Raises the ContextMenuChanged event.

(Inherited from Control)
OnContextMenuStripChanged(EventArgs) OnContextMenuStripChanged(EventArgs) OnContextMenuStripChanged(EventArgs) OnContextMenuStripChanged(EventArgs)

Raises the ContextMenuStripChanged event.

(Inherited from Control)
OnControlAdded(ControlEventArgs) OnControlAdded(ControlEventArgs) OnControlAdded(ControlEventArgs) OnControlAdded(ControlEventArgs)

Raises the ControlAdded event.

(Inherited from Control)
OnControlRemoved(ControlEventArgs) OnControlRemoved(ControlEventArgs) OnControlRemoved(ControlEventArgs) OnControlRemoved(ControlEventArgs)

Raises the ControlRemoved event.

(Inherited from Control)
OnCreateControl() OnCreateControl() OnCreateControl() OnCreateControl()

Raises the CreateControl() method.

(Inherited from Control)
OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs) OnCurrentCellChanged(EventArgs)

Raises the CurrentCellChanged event.

OnCurrentCellDirtyStateChanged(EventArgs) OnCurrentCellDirtyStateChanged(EventArgs) OnCurrentCellDirtyStateChanged(EventArgs) OnCurrentCellDirtyStateChanged(EventArgs)

Raises the CurrentCellDirtyStateChanged event.

OnCursorChanged(EventArgs) OnCursorChanged(EventArgs) OnCursorChanged(EventArgs) OnCursorChanged(EventArgs)

Raises the CursorChanged event and updates the UserSetCursor property if the cursor was changed in user code.

OnDataBindingComplete(DataGridViewBindingCompleteEventArgs) OnDataBindingComplete(DataGridViewBindingCompleteEventArgs) OnDataBindingComplete(DataGridViewBindingCompleteEventArgs) OnDataBindingComplete(DataGridViewBindingCompleteEventArgs)

Raises the DataBindingComplete event.

OnDataError(Boolean, DataGridViewDataErrorEventArgs) OnDataError(Boolean, DataGridViewDataErrorEventArgs) OnDataError(Boolean, DataGridViewDataErrorEventArgs) OnDataError(Boolean, DataGridViewDataErrorEventArgs)

Raises the DataError event.

OnDataMemberChanged(EventArgs) OnDataMemberChanged(EventArgs) OnDataMemberChanged(EventArgs) OnDataMemberChanged(EventArgs)

Raises the DataMemberChanged event.

OnDataSourceChanged(EventArgs) OnDataSourceChanged(EventArgs) OnDataSourceChanged(EventArgs) OnDataSourceChanged(EventArgs)

Raises the DataSourceChanged event.

OnDefaultCellStyleChanged(EventArgs) OnDefaultCellStyleChanged(EventArgs) OnDefaultCellStyleChanged(EventArgs) OnDefaultCellStyleChanged(EventArgs)

Raises the DefaultCellStyleChanged event.

OnDefaultValuesNeeded(DataGridViewRowEventArgs) OnDefaultValuesNeeded(DataGridViewRowEventArgs) OnDefaultValuesNeeded(DataGridViewRowEventArgs) OnDefaultValuesNeeded(DataGridViewRowEventArgs)

Raises the DefaultValuesNeeded event.

OnDockChanged(EventArgs) OnDockChanged(EventArgs) OnDockChanged(EventArgs) OnDockChanged(EventArgs)

Raises the DockChanged event.

(Inherited from Control)
OnDoubleClick(EventArgs) OnDoubleClick(EventArgs) OnDoubleClick(EventArgs) OnDoubleClick(EventArgs)

Raises the DoubleClick event.

OnDpiChangedAfterParent(EventArgs) OnDpiChangedAfterParent(EventArgs) OnDpiChangedAfterParent(EventArgs) OnDpiChangedAfterParent(EventArgs)

Raises the DpiChangedAfterParent event.

(Inherited from Control)
OnDpiChangedBeforeParent(EventArgs) OnDpiChangedBeforeParent(EventArgs) OnDpiChangedBeforeParent(EventArgs) OnDpiChangedBeforeParent(EventArgs)

Raises the DpiChangedBeforeParent event.

(Inherited from Control)
OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs) OnDragDrop(DragEventArgs)

Raises the DragDrop event.

(Inherited from Control)
OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs) OnDragEnter(DragEventArgs)

Raises the DragEnter event.

(Inherited from Control)
OnDragLeave(EventArgs) OnDragLeave(EventArgs) OnDragLeave(EventArgs) OnDragLeave(EventArgs)

Raises the DragLeave event.

(Inherited from Control)
OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs) OnDragOver(DragEventArgs)

Raises the DragOver event.

(Inherited from Control)
OnEditingControlShowing(DataGridViewEditingControlShowingEventArgs) OnEditingControlShowing(DataGridViewEditingControlShowingEventArgs) OnEditingControlShowing(DataGridViewEditingControlShowingEventArgs) OnEditingControlShowing(DataGridViewEditingControlShowingEventArgs)

Raises the EditingControlShowing event.

OnEditModeChanged(EventArgs) OnEditModeChanged(EventArgs) OnEditModeChanged(EventArgs) OnEditModeChanged(EventArgs)

Raises the EditModeChanged event.

OnEnabledChanged(EventArgs) OnEnabledChanged(EventArgs) OnEnabledChanged(EventArgs) OnEnabledChanged(EventArgs)

Raises the EnabledChanged event.

OnEnter(EventArgs) OnEnter(EventArgs) OnEnter(EventArgs) OnEnter(EventArgs)

Raises the Enter event.

OnFontChanged(EventArgs) OnFontChanged(EventArgs) OnFontChanged(EventArgs) OnFontChanged(EventArgs)

Raises the FontChanged event.

OnForeColorChanged(EventArgs) OnForeColorChanged(EventArgs) OnForeColorChanged(EventArgs) OnForeColorChanged(EventArgs)

Raises the ForeColorChanged event.

OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs) OnGiveFeedback(GiveFeedbackEventArgs)

Raises the GiveFeedback event.

(Inherited from Control)
OnGotFocus(EventArgs) OnGotFocus(EventArgs) OnGotFocus(EventArgs) OnGotFocus(EventArgs)

Raises the GotFocus event.

OnGridColorChanged(EventArgs) OnGridColorChanged(EventArgs) OnGridColorChanged(EventArgs) OnGridColorChanged(EventArgs)

Raises the GridColorChanged event.

OnHandleCreated(EventArgs) OnHandleCreated(EventArgs) OnHandleCreated(EventArgs) OnHandleCreated(EventArgs)

Raises the HandleCreated event.

OnHandleDestroyed(EventArgs) OnHandleDestroyed(EventArgs) OnHandleDestroyed(EventArgs) OnHandleDestroyed(EventArgs)

Raises the HandleDestroyed event.

OnHelpRequested(HelpEventArgs) OnHelpRequested(HelpEventArgs) OnHelpRequested(HelpEventArgs) OnHelpRequested(HelpEventArgs)

Raises the HelpRequested event.

(Inherited from Control)
OnImeModeChanged(EventArgs) OnImeModeChanged(EventArgs) OnImeModeChanged(EventArgs) OnImeModeChanged(EventArgs)

Raises the ImeModeChanged event.

(Inherited from Control)
OnInvalidated(InvalidateEventArgs) OnInvalidated(InvalidateEventArgs) OnInvalidated(InvalidateEventArgs) OnInvalidated(InvalidateEventArgs)

Raises the Invalidated event.

(Inherited from Control)
OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs) OnKeyDown(KeyEventArgs)

Raises the KeyDown event.

OnKeyPress(KeyPressEventArgs) OnKeyPress(KeyPressEventArgs) OnKeyPress(KeyPressEventArgs) OnKeyPress(KeyPressEventArgs)

Raises the KeyPress event.

OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs) OnKeyUp(KeyEventArgs)

Raises the KeyUp event.

OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs) OnLayout(LayoutEventArgs)

Raises the Layout event.

OnLeave(EventArgs) OnLeave(EventArgs) OnLeave(EventArgs) OnLeave(EventArgs)

Raises the Leave event.

OnLocationChanged(EventArgs) OnLocationChanged(EventArgs) OnLocationChanged(EventArgs) OnLocationChanged(EventArgs)

Raises the LocationChanged event.

(Inherited from Control)
OnLostFocus(EventArgs) OnLostFocus(EventArgs) OnLostFocus(EventArgs) OnLostFocus(EventArgs)

Raises the LostFocus event.

OnMarginChanged(EventArgs) OnMarginChanged(EventArgs) OnMarginChanged(EventArgs) OnMarginChanged(EventArgs)

Raises the MarginChanged event.

(Inherited from Control)
OnMouseCaptureChanged(EventArgs) OnMouseCaptureChanged(EventArgs) OnMouseCaptureChanged(EventArgs) OnMouseCaptureChanged(EventArgs)

Raises the MouseCaptureChanged event.

(Inherited from Control)
OnMouseClick(MouseEventArgs) OnMouseClick(MouseEventArgs) OnMouseClick(MouseEventArgs) OnMouseClick(MouseEventArgs)

Raises the MouseClick event.

OnMouseDoubleClick(MouseEventArgs) OnMouseDoubleClick(MouseEventArgs) OnMouseDoubleClick(MouseEventArgs) OnMouseDoubleClick(MouseEventArgs)

Raises the MouseDoubleClick event.

OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs) OnMouseDown(MouseEventArgs)

Raises the MouseDown event.

OnMouseEnter(EventArgs) OnMouseEnter(EventArgs) OnMouseEnter(EventArgs) OnMouseEnter(EventArgs)

Raises the OnMouseEnter(EventArgs) event.

OnMouseHover(EventArgs) OnMouseHover(EventArgs) OnMouseHover(EventArgs) OnMouseHover(EventArgs)

Raises the MouseHover event.

(Inherited from Control)
OnMouseLeave(EventArgs) OnMouseLeave(EventArgs) OnMouseLeave(EventArgs) OnMouseLeave(EventArgs)

Raises the MouseLeave event.

OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs) OnMouseMove(MouseEventArgs)

Raises the MouseMove event.

OnMouseUp(MouseEventArgs) OnMouseUp(MouseEventArgs) OnMouseUp(MouseEventArgs) OnMouseUp(MouseEventArgs)

Raises the MouseUp event.

OnMouseWheel(MouseEventArgs) OnMouseWheel(MouseEventArgs) OnMouseWheel(MouseEventArgs) OnMouseWheel(MouseEventArgs)

Raises the MouseWheel event.

OnMove(EventArgs) OnMove(EventArgs) OnMove(EventArgs) OnMove(EventArgs)

Raises the Move event.

(Inherited from Control)
OnMultiSelectChanged(EventArgs) OnMultiSelectChanged(EventArgs) OnMultiSelectChanged(EventArgs) OnMultiSelectChanged(EventArgs)

Raises the MultiSelectChanged event.

OnNewRowNeeded(DataGridViewRowEventArgs) OnNewRowNeeded(DataGridViewRowEventArgs) OnNewRowNeeded(DataGridViewRowEventArgs) OnNewRowNeeded(DataGridViewRowEventArgs)

Raises the NewRowNeeded event.

OnNotifyMessage(Message) OnNotifyMessage(Message) OnNotifyMessage(Message) OnNotifyMessage(Message)

Notifies the control of Windows messages.

(Inherited from Control)
OnPaddingChanged(EventArgs) OnPaddingChanged(EventArgs) OnPaddingChanged(EventArgs) OnPaddingChanged(EventArgs)

Raises the PaddingChanged event.

(Inherited from Control)
OnPaint(PaintEventArgs) OnPaint(PaintEventArgs) OnPaint(PaintEventArgs) OnPaint(PaintEventArgs)

Raises the Paint event.

OnPaintBackground(PaintEventArgs) OnPaintBackground(PaintEventArgs) OnPaintBackground(PaintEventArgs) OnPaintBackground(PaintEventArgs)

Paints the background of the control.

(Inherited from Control)
OnParentBackColorChanged(EventArgs) OnParentBackColorChanged(EventArgs) OnParentBackColorChanged(EventArgs) OnParentBackColorChanged(EventArgs)

Raises the BackColorChanged event when the BackColor property value of the control's container changes.

(Inherited from Control)
OnParentBackgroundImageChanged(EventArgs) OnParentBackgroundImageChanged(EventArgs) OnParentBackgroundImageChanged(EventArgs) OnParentBackgroundImageChanged(EventArgs)

Raises the BackgroundImageChanged event when the BackgroundImage property value of the control's container changes.

(Inherited from Control)
OnParentBindingContextChanged(EventArgs) OnParentBindingContextChanged(EventArgs) OnParentBindingContextChanged(EventArgs) OnParentBindingContextChanged(EventArgs)

Raises the BindingContextChanged event when the BindingContext property value of the control's container changes.

(Inherited from Control)
OnParentChanged(EventArgs) OnParentChanged(EventArgs) OnParentChanged(EventArgs) OnParentChanged(EventArgs)

Raises the ParentChanged event.

(Inherited from Control)
OnParentCursorChanged(EventArgs) OnParentCursorChanged(EventArgs) OnParentCursorChanged(EventArgs) OnParentCursorChanged(EventArgs)

Raises the CursorChanged event.

(Inherited from Control)
OnParentEnabledChanged(EventArgs) OnParentEnabledChanged(EventArgs) OnParentEnabledChanged(EventArgs) OnParentEnabledChanged(EventArgs)

Raises the EnabledChanged event when the Enabled property value of the control's container changes.

(Inherited from Control)
OnParentFontChanged(EventArgs) OnParentFontChanged(EventArgs) OnParentFontChanged(EventArgs) OnParentFontChanged(EventArgs)

Raises the FontChanged event when the Font property value of the control's container changes.

(Inherited from Control)
OnParentForeColorChanged(EventArgs) OnParentForeColorChanged(EventArgs) OnParentForeColorChanged(EventArgs) OnParentForeColorChanged(EventArgs)

Raises the ForeColorChanged event when the ForeColor property value of the control's container changes.

(Inherited from Control)
OnParentRightToLeftChanged(EventArgs) OnParentRightToLeftChanged(EventArgs) OnParentRightToLeftChanged(EventArgs) OnParentRightToLeftChanged(EventArgs)

Raises the RightToLeftChanged event when the RightToLeft property value of the control's container changes.

(Inherited from Control)
OnParentVisibleChanged(EventArgs) OnParentVisibleChanged(EventArgs) OnParentVisibleChanged(EventArgs) OnParentVisibleChanged(EventArgs)

Raises the VisibleChanged event when the Visible property value of the control's container changes.

(Inherited from Control)
OnPreviewKeyDown(PreviewKeyDownEventArgs) OnPreviewKeyDown(PreviewKeyDownEventArgs) OnPreviewKeyDown(PreviewKeyDownEventArgs) OnPreviewKeyDown(PreviewKeyDownEventArgs)

Raises the PreviewKeyDown event.

(Inherited from Control)
OnPrint(PaintEventArgs) OnPrint(PaintEventArgs) OnPrint(PaintEventArgs) OnPrint(PaintEventArgs)

Raises the Paint event.

(Inherited from Control)
OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs) OnQueryContinueDrag(QueryContinueDragEventArgs)

Raises the QueryContinueDrag event.

(Inherited from Control)
OnReadOnlyChanged(EventArgs) OnReadOnlyChanged(EventArgs) OnReadOnlyChanged(EventArgs) OnReadOnlyChanged(EventArgs)

Raises the ReadOnlyChanged event.

OnRegionChanged(EventArgs) OnRegionChanged(EventArgs) OnRegionChanged(EventArgs) OnRegionChanged(EventArgs)

Raises the RegionChanged event.

(Inherited from Control)
OnResize(EventArgs) OnResize(EventArgs) OnResize(EventArgs) OnResize(EventArgs)

Raises the Resize event.

OnRightToLeftChanged(EventArgs) OnRightToLeftChanged(EventArgs) OnRightToLeftChanged(EventArgs) OnRightToLeftChanged(EventArgs)

Raises the RightToLeftChanged event.

OnRowContextMenuStripChanged(DataGridViewRowEventArgs) OnRowContextMenuStripChanged(DataGridViewRowEventArgs) OnRowContextMenuStripChanged(DataGridViewRowEventArgs) OnRowContextMenuStripChanged(DataGridViewRowEventArgs)

Raises the RowContextMenuStripChanged event.

OnRowContextMenuStripNeeded(DataGridViewRowContextMenuStripNeededEventArgs) OnRowContextMenuStripNeeded(DataGridViewRowContextMenuStripNeededEventArgs) OnRowContextMenuStripNeeded(DataGridViewRowContextMenuStripNeededEventArgs) OnRowContextMenuStripNeeded(DataGridViewRowContextMenuStripNeededEventArgs)

Raises the RowContextMenuStripNeeded event.

OnRowDefaultCellStyleChanged(DataGridViewRowEventArgs) OnRowDefaultCellStyleChanged(DataGridViewRowEventArgs) OnRowDefaultCellStyleChanged(DataGridViewRowEventArgs) OnRowDefaultCellStyleChanged(DataGridViewRowEventArgs)

Raises the RowDefaultCellStyleChanged event.

OnRowDirtyStateNeeded(QuestionEventArgs) OnRowDirtyStateNeeded(QuestionEventArgs) OnRowDirtyStateNeeded(QuestionEventArgs) OnRowDirtyStateNeeded(QuestionEventArgs)

Raises the RowDirtyStateNeeded event.

OnRowDividerDoubleClick(DataGridViewRowDividerDoubleClickEventArgs) OnRowDividerDoubleClick(DataGridViewRowDividerDoubleClickEventArgs) OnRowDividerDoubleClick(DataGridViewRowDividerDoubleClickEventArgs) OnRowDividerDoubleClick(DataGridViewRowDividerDoubleClickEventArgs)

Raises the RowDividerDoubleClick event.

OnRowDividerHeightChanged(DataGridViewRowEventArgs) OnRowDividerHeightChanged(DataGridViewRowEventArgs) OnRowDividerHeightChanged(DataGridViewRowEventArgs) OnRowDividerHeightChanged(DataGridViewRowEventArgs)

Raises the RowDividerHeightChanged event.

OnRowEnter(DataGridViewCellEventArgs) OnRowEnter(DataGridViewCellEventArgs) OnRowEnter(DataGridViewCellEventArgs) OnRowEnter(DataGridViewCellEventArgs)

Raises the RowEnter event.

OnRowErrorTextChanged(DataGridViewRowEventArgs) OnRowErrorTextChanged(DataGridViewRowEventArgs) OnRowErrorTextChanged(DataGridViewRowEventArgs) OnRowErrorTextChanged(DataGridViewRowEventArgs)

Raises the RowErrorTextChanged event.

OnRowErrorTextNeeded(DataGridViewRowErrorTextNeededEventArgs) OnRowErrorTextNeeded(DataGridViewRowErrorTextNeededEventArgs) OnRowErrorTextNeeded(DataGridViewRowErrorTextNeededEventArgs) OnRowErrorTextNeeded(DataGridViewRowErrorTextNeededEventArgs)

Raises the RowErrorTextNeeded event.

OnRowHeaderCellChanged(DataGridViewRowEventArgs) OnRowHeaderCellChanged(DataGridViewRowEventArgs) OnRowHeaderCellChanged(DataGridViewRowEventArgs) OnRowHeaderCellChanged(DataGridViewRowEventArgs)

Raises the RowHeaderCellChanged event.

OnRowHeaderMouseClick(DataGridViewCellMouseEventArgs) OnRowHeaderMouseClick(DataGridViewCellMouseEventArgs) OnRowHeaderMouseClick(DataGridViewCellMouseEventArgs) OnRowHeaderMouseClick(DataGridViewCellMouseEventArgs)

Raises the RowHeaderMouseClick event.

OnRowHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs) OnRowHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs) OnRowHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs) OnRowHeaderMouseDoubleClick(DataGridViewCellMouseEventArgs)

Raises the RowHeaderMouseDoubleClick event.

OnRowHeadersBorderStyleChanged(EventArgs) OnRowHeadersBorderStyleChanged(EventArgs) OnRowHeadersBorderStyleChanged(EventArgs) OnRowHeadersBorderStyleChanged(EventArgs)

Raises the RowHeadersBorderStyleChanged event.

OnRowHeadersDefaultCellStyleChanged(EventArgs) OnRowHeadersDefaultCellStyleChanged(EventArgs) OnRowHeadersDefaultCellStyleChanged(EventArgs) OnRowHeadersDefaultCellStyleChanged(EventArgs)

Raises the RowHeadersDefaultCellStyleChanged event.

OnRowHeadersWidthChanged(EventArgs) OnRowHeadersWidthChanged(EventArgs) OnRowHeadersWidthChanged(EventArgs) OnRowHeadersWidthChanged(EventArgs)

Raises the RowHeadersWidthChanged event.

OnRowHeadersWidthSizeModeChanged(DataGridViewAutoSizeModeEventArgs) OnRowHeadersWidthSizeModeChanged(DataGridViewAutoSizeModeEventArgs) OnRowHeadersWidthSizeModeChanged(DataGridViewAutoSizeModeEventArgs) OnRowHeadersWidthSizeModeChanged(DataGridViewAutoSizeModeEventArgs)

Raises the RowHeadersWidthSizeModeChanged event.

OnRowHeightChanged(DataGridViewRowEventArgs) OnRowHeightChanged(DataGridViewRowEventArgs) OnRowHeightChanged(DataGridViewRowEventArgs) OnRowHeightChanged(DataGridViewRowEventArgs)

Raises the RowHeightChanged event.

OnRowHeightInfoNeeded(DataGridViewRowHeightInfoNeededEventArgs) OnRowHeightInfoNeeded(DataGridViewRowHeightInfoNeededEventArgs) OnRowHeightInfoNeeded(DataGridViewRowHeightInfoNeededEventArgs) OnRowHeightInfoNeeded(DataGridViewRowHeightInfoNeededEventArgs)

Raises the RowHeightInfoNeeded event.

OnRowHeightInfoPushed(DataGridViewRowHeightInfoPushedEventArgs) OnRowHeightInfoPushed(DataGridViewRowHeightInfoPushedEventArgs) OnRowHeightInfoPushed(DataGridViewRowHeightInfoPushedEventArgs) OnRowHeightInfoPushed(DataGridViewRowHeightInfoPushedEventArgs)

Raises the RowHeightInfoPushed event.

OnRowLeave(DataGridViewCellEventArgs) OnRowLeave(DataGridViewCellEventArgs) OnRowLeave(DataGridViewCellEventArgs) OnRowLeave(DataGridViewCellEventArgs)

Raises the RowLeave event.

OnRowMinimumHeightChanged(DataGridViewRowEventArgs) OnRowMinimumHeightChanged(DataGridViewRowEventArgs) OnRowMinimumHeightChanged(DataGridViewRowEventArgs) OnRowMinimumHeightChanged(DataGridViewRowEventArgs)

Raises the RowMinimumHeightChanged event.

OnRowPostPaint(DataGridViewRowPostPaintEventArgs) OnRowPostPaint(DataGridViewRowPostPaintEventArgs) OnRowPostPaint(DataGridViewRowPostPaintEventArgs) OnRowPostPaint(DataGridViewRowPostPaintEventArgs)

Raises the RowPostPaint event.

OnRowPrePaint(DataGridViewRowPrePaintEventArgs) OnRowPrePaint(DataGridViewRowPrePaintEventArgs) OnRowPrePaint(DataGridViewRowPrePaintEventArgs) OnRowPrePaint(DataGridViewRowPrePaintEventArgs)

Raises the RowPrePaint event.

OnRowsAdded(DataGridViewRowsAddedEventArgs) OnRowsAdded(DataGridViewRowsAddedEventArgs) OnRowsAdded(DataGridViewRowsAddedEventArgs) OnRowsAdded(DataGridViewRowsAddedEventArgs)

Raises the RowsAdded event.

OnRowsDefaultCellStyleChanged(EventArgs) OnRowsDefaultCellStyleChanged(EventArgs) OnRowsDefaultCellStyleChanged(EventArgs) OnRowsDefaultCellStyleChanged(EventArgs)

Raises the RowsDefaultCellStyleChanged event.

OnRowsRemoved(DataGridViewRowsRemovedEventArgs) OnRowsRemoved(DataGridViewRowsRemovedEventArgs) OnRowsRemoved(DataGridViewRowsRemovedEventArgs) OnRowsRemoved(DataGridViewRowsRemovedEventArgs)

Raises the RowsRemoved event.

OnRowStateChanged(Int32, DataGridViewRowStateChangedEventArgs) OnRowStateChanged(Int32, DataGridViewRowStateChangedEventArgs) OnRowStateChanged(Int32, DataGridViewRowStateChangedEventArgs) OnRowStateChanged(Int32, DataGridViewRowStateChangedEventArgs)

Raises the RowStateChanged event.

OnRowUnshared(DataGridViewRowEventArgs) OnRowUnshared(DataGridViewRowEventArgs) OnRowUnshared(DataGridViewRowEventArgs) OnRowUnshared(DataGridViewRowEventArgs)

Raises the RowUnshared event.

OnRowValidated(DataGridViewCellEventArgs) OnRowValidated(DataGridViewCellEventArgs) OnRowValidated(DataGridViewCellEventArgs) OnRowValidated(DataGridViewCellEventArgs)

Raises the RowValidated event.

OnRowValidating(DataGridViewCellCancelEventArgs) OnRowValidating(DataGridViewCellCancelEventArgs) OnRowValidating(DataGridViewCellCancelEventArgs) OnRowValidating(DataGridViewCellCancelEventArgs)

Raises the RowValidating event.

OnScroll(ScrollEventArgs) OnScroll(ScrollEventArgs) OnScroll(ScrollEventArgs) OnScroll(ScrollEventArgs)

Raises the Scroll event.

OnSelectionChanged(EventArgs) OnSelectionChanged(EventArgs) OnSelectionChanged(EventArgs) OnSelectionChanged(EventArgs)

Raises the SelectionChanged event.

OnSizeChanged(EventArgs) OnSizeChanged(EventArgs) OnSizeChanged(EventArgs) OnSizeChanged(EventArgs)

Raises the SizeChanged event.

(Inherited from Control)
OnSortCompare(DataGridViewSortCompareEventArgs) OnSortCompare(DataGridViewSortCompareEventArgs) OnSortCompare(DataGridViewSortCompareEventArgs) OnSortCompare(DataGridViewSortCompareEventArgs)

Raises the SortCompare event.

OnSorted(EventArgs) OnSorted(EventArgs) OnSorted(EventArgs) OnSorted(EventArgs)

Raises the Sorted event.

OnStyleChanged(EventArgs) OnStyleChanged(EventArgs) OnStyleChanged(EventArgs) OnStyleChanged(EventArgs)

Raises the StyleChanged event.

(Inherited from Control)
OnSystemColorsChanged(EventArgs) OnSystemColorsChanged(EventArgs) OnSystemColorsChanged(EventArgs) OnSystemColorsChanged(EventArgs)

Raises the SystemColorsChanged event.

(Inherited from Control)
OnTabIndexChanged(EventArgs) OnTabIndexChanged(EventArgs) OnTabIndexChanged(EventArgs) OnTabIndexChanged(EventArgs)

Raises the TabIndexChanged event.

(Inherited from Control)
OnTabStopChanged(EventArgs) OnTabStopChanged(EventArgs) OnTabStopChanged(EventArgs) OnTabStopChanged(EventArgs)

Raises the TabStopChanged event.

(Inherited from Control)
OnTextChanged(EventArgs) OnTextChanged(EventArgs) OnTextChanged(EventArgs) OnTextChanged(EventArgs)

Raises the TextChanged event.

(Inherited from Control)
OnUserAddedRow(DataGridViewRowEventArgs) OnUserAddedRow(DataGridViewRowEventArgs) OnUserAddedRow(DataGridViewRowEventArgs) OnUserAddedRow(DataGridViewRowEventArgs)

Raises the UserAddedRow event.

OnUserDeletedRow(DataGridViewRowEventArgs) OnUserDeletedRow(DataGridViewRowEventArgs) OnUserDeletedRow(DataGridViewRowEventArgs) OnUserDeletedRow(DataGridViewRowEventArgs)

Raises the UserDeletedRow event.

OnUserDeletingRow(DataGridViewRowCancelEventArgs) OnUserDeletingRow(DataGridViewRowCancelEventArgs) OnUserDeletingRow(DataGridViewRowCancelEventArgs) OnUserDeletingRow(DataGridViewRowCancelEventArgs)

Raises the UserDeletingRow event.

OnValidated(EventArgs) OnValidated(EventArgs) OnValidated(EventArgs) OnValidated(EventArgs)

Raises the Validated event.

(Inherited from Control)
OnValidating(CancelEventArgs) OnValidating(CancelEventArgs) OnValidating(CancelEventArgs) OnValidating(CancelEventArgs)

Raises the Validating event.

OnVisibleChanged(EventArgs) OnVisibleChanged(EventArgs) OnVisibleChanged(EventArgs) OnVisibleChanged(EventArgs)

Raises the VisibleChanged event.

PaintBackground(Graphics, Rectangle, Rectangle) PaintBackground(Graphics, Rectangle, Rectangle) PaintBackground(Graphics, Rectangle, Rectangle) PaintBackground(Graphics, Rectangle, Rectangle)

Paints the background of the DataGridView.

PerformLayout() PerformLayout() PerformLayout() PerformLayout()

Forces the control to apply layout logic to all its child controls.

(Inherited from Control)
PerformLayout(Control, String) PerformLayout(Control, String) PerformLayout(Control, String) PerformLayout(Control, String)

Forces the control to apply layout logic to all its child controls.

(Inherited from Control)
PointToClient(Point) PointToClient(Point) PointToClient(Point) PointToClient(Point)

Computes the location of the specified screen point into client coordinates.

(Inherited from Control)
PointToScreen(Point) PointToScreen(Point) PointToScreen(Point) PointToScreen(Point)

Computes the location of the specified client point into screen coordinates.

(Inherited from Control)
PreProcessControlMessage(Message) PreProcessControlMessage(Message) PreProcessControlMessage(Message) PreProcessControlMessage(Message)

Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Inherited from Control)
PreProcessMessage(Message) PreProcessMessage(Message) PreProcessMessage(Message) PreProcessMessage(Message)

Preprocesses keyboard or input messages within the message loop before they are dispatched.

(Inherited from Control)
ProcessAKey(Keys) ProcessAKey(Keys) ProcessAKey(Keys) ProcessAKey(Keys)

Processes the A key.

ProcessCmdKey(Message, Keys) ProcessCmdKey(Message, Keys) ProcessCmdKey(Message, Keys) ProcessCmdKey(Message, Keys)

Processes a command key.

(Inherited from Control)
ProcessDataGridViewKey(KeyEventArgs) ProcessDataGridViewKey(KeyEventArgs) ProcessDataGridViewKey(KeyEventArgs) ProcessDataGridViewKey(KeyEventArgs)

Processes keys used for navigating in the DataGridView.

ProcessDeleteKey(Keys) ProcessDeleteKey(Keys) ProcessDeleteKey(Keys) ProcessDeleteKey(Keys)

Processes the DELETE key.

ProcessDialogChar(Char) ProcessDialogChar(Char) ProcessDialogChar(Char) ProcessDialogChar(Char)

Processes a dialog character.

(Inherited from Control)
ProcessDialogKey(Keys) ProcessDialogKey(Keys) ProcessDialogKey(Keys) ProcessDialogKey(Keys)

Processes keys, such as the TAB, ESCAPE, ENTER, and ARROW keys, used to control dialog boxes.

ProcessDownKey(Keys) ProcessDownKey(Keys) ProcessDownKey(Keys) ProcessDownKey(Keys)

Processes the DOWN ARROW key.

ProcessEndKey(Keys) ProcessEndKey(Keys) ProcessEndKey(Keys) ProcessEndKey(Keys)

Processes the END key.

ProcessEnterKey(Keys) ProcessEnterKey(Keys) ProcessEnterKey(Keys) ProcessEnterKey(Keys)

Processes the ENTER key.

ProcessEscapeKey(Keys) ProcessEscapeKey(Keys) ProcessEscapeKey(Keys) ProcessEscapeKey(Keys)

Processes the ESC key.

ProcessF2Key(Keys) ProcessF2Key(Keys) ProcessF2Key(Keys) ProcessF2Key(Keys)

Processes the F2 key.

ProcessF3Key(Keys) ProcessF3Key(Keys) ProcessF3Key(Keys) ProcessF3Key(Keys)

Processes the F3 key by sorting the current column.

ProcessHomeKey(Keys) ProcessHomeKey(Keys) ProcessHomeKey(Keys) ProcessHomeKey(Keys)

Processes the HOME key.

ProcessInsertKey(Keys) ProcessInsertKey(Keys) ProcessInsertKey(Keys) ProcessInsertKey(Keys)

Processes the INSERT key.

ProcessKeyEventArgs(Message) ProcessKeyEventArgs(Message) ProcessKeyEventArgs(Message) ProcessKeyEventArgs(Message)

Processes a key message and generates the appropriate control events.

ProcessKeyMessage(Message) ProcessKeyMessage(Message) ProcessKeyMessage(Message) ProcessKeyMessage(Message)

Processes a keyboard message.

(Inherited from Control)
ProcessKeyPreview(Message) ProcessKeyPreview(Message) ProcessKeyPreview(Message) ProcessKeyPreview(Message)

Previews a keyboard message.

ProcessLeftKey(Keys) ProcessLeftKey(Keys) ProcessLeftKey(Keys) ProcessLeftKey(Keys)

Processes the LEFT ARROW key.

ProcessMnemonic(Char) ProcessMnemonic(Char) ProcessMnemonic(Char) ProcessMnemonic(Char)

Processes a mnemonic character.

(Inherited from Control)
ProcessNextKey(Keys) ProcessNextKey(Keys) ProcessNextKey(Keys) ProcessNextKey(Keys)

Processes the PAGE DOWN key.

ProcessPriorKey(Keys) ProcessPriorKey(Keys) ProcessPriorKey(Keys) ProcessPriorKey(Keys)

Processes the PAGE UP key.

ProcessRightKey(Keys) ProcessRightKey(Keys) ProcessRightKey(Keys) ProcessRightKey(Keys)

Processes the RIGHT ARROW key.

ProcessSpaceKey(Keys) ProcessSpaceKey(Keys) ProcessSpaceKey(Keys) ProcessSpaceKey(Keys)

Processes the SPACEBAR.

ProcessTabKey(Keys) ProcessTabKey(Keys) ProcessTabKey(Keys) ProcessTabKey(Keys)

Processes the TAB key.

ProcessUpKey(Keys) ProcessUpKey(Keys) ProcessUpKey(Keys) ProcessUpKey(Keys)

Processes the UP ARROW key.

ProcessZeroKey(Keys) ProcessZeroKey(Keys) ProcessZeroKey(Keys) ProcessZeroKey(Keys)

Processes the 0 key.

RaiseDragEvent(Object, DragEventArgs) RaiseDragEvent(Object, DragEventArgs) RaiseDragEvent(Object, DragEventArgs) RaiseDragEvent(Object, DragEventArgs)

Raises the appropriate drag event.

(Inherited from Control)
RaiseKeyEvent(Object, KeyEventArgs) RaiseKeyEvent(Object, KeyEventArgs) RaiseKeyEvent(Object, KeyEventArgs) RaiseKeyEvent(Object, KeyEventArgs)

Raises the appropriate key event.

(Inherited from Control)
RaiseMouseEvent(Object, MouseEventArgs) RaiseMouseEvent(Object, MouseEventArgs) RaiseMouseEvent(Object, MouseEventArgs) RaiseMouseEvent(Object, MouseEventArgs)

Raises the appropriate mouse event.

(Inherited from Control)
RaisePaintEvent(Object, PaintEventArgs) RaisePaintEvent(Object, PaintEventArgs) RaisePaintEvent(Object, PaintEventArgs) RaisePaintEvent(Object, PaintEventArgs)

Raises the appropriate paint event.

(Inherited from Control)
RecreateHandle() RecreateHandle() RecreateHandle() RecreateHandle()

Forces the re-creation of the handle for the control.

(Inherited from Control)
RectangleToClient(Rectangle) RectangleToClient(Rectangle) RectangleToClient(Rectangle) RectangleToClient(Rectangle)

Computes the size and location of the specified screen rectangle in client coordinates.

(Inherited from Control)
RectangleToScreen(Rectangle) RectangleToScreen(Rectangle) RectangleToScreen(Rectangle) RectangleToScreen(Rectangle)

Computes the size and location of the specified client rectangle in screen coordinates.

(Inherited from Control)
Refresh() Refresh() Refresh() Refresh()

Forces the control to invalidate its client area and immediately redraw itself and any child controls.

(Inherited from Control)
RefreshEdit() RefreshEdit() RefreshEdit() RefreshEdit()

Refreshes the value of the current cell with the underlying cell value when the cell is in edit mode, discarding any previous value.

RescaleConstantsForDpi(Int32, Int32) RescaleConstantsForDpi(Int32, Int32) RescaleConstantsForDpi(Int32, Int32) RescaleConstantsForDpi(Int32, Int32)

Provides constants for rescaling the control when a DPI change occurs.

(Inherited from Control)
ResetBackColor() ResetBackColor() ResetBackColor() ResetBackColor()

Resets the BackColor property to its default value.

(Inherited from Control)
ResetBindings() ResetBindings() ResetBindings() ResetBindings()

Causes a control bound to the BindingSource to reread all the items in the list and refresh their displayed values.

(Inherited from Control)
ResetCursor() ResetCursor() ResetCursor() ResetCursor()

Resets the Cursor property to its default value.

(Inherited from Control)
ResetFont() ResetFont() ResetFont() ResetFont()

Resets the Font property to its default value.

(Inherited from Control)
ResetForeColor() ResetForeColor() ResetForeColor() ResetForeColor()

Resets the ForeColor property to its default value.

(Inherited from Control)
ResetImeMode() ResetImeMode() ResetImeMode() ResetImeMode()

Resets the ImeMode property to its default value.

(Inherited from Control)
ResetMouseEventArgs() ResetMouseEventArgs() ResetMouseEventArgs() ResetMouseEventArgs()

Resets the control to handle the MouseLeave event.

(Inherited from Control)
ResetRightToLeft() ResetRightToLeft() ResetRightToLeft() ResetRightToLeft()

Resets the RightToLeft property to its default value.

(Inherited from Control)
ResetText() ResetText() ResetText() ResetText()

Resets the Text property to its default value (Empty).

ResumeLayout() ResumeLayout() ResumeLayout() ResumeLayout()

Resumes usual layout logic.

(Inherited from Control)
ResumeLayout(Boolean) ResumeLayout(Boolean) ResumeLayout(Boolean) ResumeLayout(Boolean)

Resumes usual layout logic, optionally forcing an immediate layout of pending layout requests.

(Inherited from Control)
RtlTranslateAlignment(ContentAlignment) RtlTranslateAlignment(ContentAlignment) RtlTranslateAlignment(ContentAlignment) RtlTranslateAlignment(ContentAlignment)

Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateAlignment(HorizontalAlignment) RtlTranslateAlignment(HorizontalAlignment) RtlTranslateAlignment(HorizontalAlignment) RtlTranslateAlignment(HorizontalAlignment)

Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateAlignment(LeftRightAlignment) RtlTranslateAlignment(LeftRightAlignment) RtlTranslateAlignment(LeftRightAlignment) RtlTranslateAlignment(LeftRightAlignment)

Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateContent(ContentAlignment) RtlTranslateContent(ContentAlignment) RtlTranslateContent(ContentAlignment) RtlTranslateContent(ContentAlignment)

Converts the specified ContentAlignment to the appropriate ContentAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateHorizontal(HorizontalAlignment) RtlTranslateHorizontal(HorizontalAlignment) RtlTranslateHorizontal(HorizontalAlignment) RtlTranslateHorizontal(HorizontalAlignment)

Converts the specified HorizontalAlignment to the appropriate HorizontalAlignment to support right-to-left text.

(Inherited from Control)
RtlTranslateLeftRight(LeftRightAlignment) RtlTranslateLeftRight(LeftRightAlignment) RtlTranslateLeftRight(LeftRightAlignment) RtlTranslateLeftRight(LeftRightAlignment)

Converts the specified LeftRightAlignment to the appropriate LeftRightAlignment to support right-to-left text.

(Inherited from Control)
Scale(Single) Scale(Single) Scale(Single) Scale(Single)

Scales the control and any child controls.

(Inherited from Control)
Scale(Single, Single) Scale(Single, Single) Scale(Single, Single) Scale(Single, Single)

Scales the entire control and any child controls.

(Inherited from Control)
Scale(SizeF) Scale(SizeF) Scale(SizeF) Scale(SizeF)

Scales the control and all child controls by the specified scaling factor.

(Inherited from Control)
ScaleBitmapLogicalToDevice(Bitmap) ScaleBitmapLogicalToDevice(Bitmap) ScaleBitmapLogicalToDevice(Bitmap) ScaleBitmapLogicalToDevice(Bitmap)

Scales a logical bitmap value to it's equivalent device unit value when a DPI change occurs.

(Inherited from Control)
ScaleControl(SizeF, BoundsSpecified) ScaleControl(SizeF, BoundsSpecified) ScaleControl(SizeF, BoundsSpecified) ScaleControl(SizeF, BoundsSpecified)

Scales a control's location, size, padding and margin.

(Inherited from Control)
ScaleCore(Single, Single) ScaleCore(Single, Single) ScaleCore(Single, Single) ScaleCore(Single, Single)

This method is not relevant for this class.

(Inherited from Control)
Select() Select() Select() Select()

Activates the control.

(Inherited from Control)
Select(Boolean, Boolean) Select(Boolean, Boolean) Select(Boolean, Boolean) Select(Boolean, Boolean)

Activates a child control. Optionally specifies the direction in the tab order to select the control from.

(Inherited from Control)
SelectAll() SelectAll() SelectAll() SelectAll()

Selects all the cells in the DataGridView.

SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean) SelectNextControl(Control, Boolean, Boolean, Boolean, Boolean)

Activates the next control.

(Inherited from Control)
SendToBack() SendToBack() SendToBack() SendToBack()

Sends the control to the back of the z-order.

(Inherited from Control)
SetAutoSizeMode(AutoSizeMode) SetAutoSizeMode(AutoSizeMode) SetAutoSizeMode(AutoSizeMode) SetAutoSizeMode(AutoSizeMode)

Sets a value indicating how a control will behave when its AutoSize property is enabled.

(Inherited from Control)
SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32) SetBounds(Int32, Int32, Int32, Int32)

Sets the bounds of the control to the specified location and size.

(Inherited from Control)
SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified) SetBounds(Int32, Int32, Int32, Int32, BoundsSpecified)

Sets the specified bounds of the control to the specified location and size.

(Inherited from Control)
SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified) SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified)

This member overrides SetBoundsCore(Int32, Int32, Int32, Int32, BoundsSpecified).

SetClientSizeCore(Int32, Int32) SetClientSizeCore(Int32, Int32) SetClientSizeCore(Int32, Int32) SetClientSizeCore(Int32, Int32)

Sets the size of the client area of the control.

(Inherited from Control)
SetCurrentCellAddressCore(Int32, Int32, Boolean, Boolean, Boolean) SetCurrentCellAddressCore(Int32, Int32, Boolean, Boolean, Boolean) SetCurrentCellAddressCore(Int32, Int32, Boolean, Boolean, Boolean) SetCurrentCellAddressCore(Int32, Int32, Boolean, Boolean, Boolean)

Sets the currently active cell.

SetSelectedCellCore(Int32, Int32, Boolean) SetSelectedCellCore(Int32, Int32, Boolean) SetSelectedCellCore(Int32, Int32, Boolean) SetSelectedCellCore(Int32, Int32, Boolean)

Changes the selection state of the cell with the specified row and column indexes.

SetSelectedColumnCore(Int32, Boolean) SetSelectedColumnCore(Int32, Boolean) SetSelectedColumnCore(Int32, Boolean) SetSelectedColumnCore(Int32, Boolean)

Changes the selection state of the column with the specified index.

SetSelectedRowCore(Int32, Boolean) SetSelectedRowCore(Int32, Boolean) SetSelectedRowCore(Int32, Boolean) SetSelectedRowCore(Int32, Boolean)

Changes the selection state of the row with the specified index.

SetStyle(ControlStyles, Boolean) SetStyle(ControlStyles, Boolean) SetStyle(ControlStyles, Boolean) SetStyle(ControlStyles, Boolean)

Sets a specified ControlStyles flag to either true or false.

(Inherited from Control)
SetTopLevel(Boolean) SetTopLevel(Boolean) SetTopLevel(Boolean) SetTopLevel(Boolean)

Sets the control as the top-level control.

(Inherited from Control)
SetVisibleCore(Boolean) SetVisibleCore(Boolean) SetVisibleCore(Boolean) SetVisibleCore(Boolean)

Sets the control to the specified visible state.

(Inherited from Control)
Show() Show() Show() Show()

Displays the control to the user.

(Inherited from Control)
SizeFromClientSize(Size) SizeFromClientSize(Size) SizeFromClientSize(Size) SizeFromClientSize(Size)

Determines the size of the entire control from the height and width of its client area.

(Inherited from Control)
Sort(DataGridViewColumn, ListSortDirection) Sort(DataGridViewColumn, ListSortDirection) Sort(DataGridViewColumn, ListSortDirection) Sort(DataGridViewColumn, ListSortDirection)

Sorts the contents of the DataGridView control in ascending or descending order based on the contents of the specified column.

Sort(IComparer) Sort(IComparer) Sort(IComparer) Sort(IComparer)

Sorts the contents of the DataGridView control using an implementation of the IComparer interface.

SuspendLayout() SuspendLayout() SuspendLayout() SuspendLayout()

Temporarily suspends the layout logic for the control.

(Inherited from Control)
ToString() ToString() ToString() ToString()

Returns a String containing the name of the Component, if any. This method should not be overridden.

(Inherited from Component)
Update() Update() Update() Update()

Causes the control to redraw the invalidated regions within its client area.

(Inherited from Control)
UpdateBounds() UpdateBounds() UpdateBounds() UpdateBounds()

Updates the bounds of the control with the current size and location.

(Inherited from Control)
UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32)

Updates the bounds of the control with the specified size and location.

(Inherited from Control)
UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32) UpdateBounds(Int32, Int32, Int32, Int32, Int32, Int32)

Updates the bounds of the control with the specified size, location, and client size.

(Inherited from Control)
UpdateCellErrorText(Int32, Int32) UpdateCellErrorText(Int32, Int32) UpdateCellErrorText(Int32, Int32) UpdateCellErrorText(Int32, Int32)

Forces the cell at the specified location to update its error text.

UpdateCellValue(Int32, Int32) UpdateCellValue(Int32, Int32) UpdateCellValue(Int32, Int32) UpdateCellValue(Int32, Int32)

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.

UpdateRowErrorText(Int32) UpdateRowErrorText(Int32) UpdateRowErrorText(Int32) UpdateRowErrorText(Int32)

Forces the row at the given row index to update its error text.

UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32) UpdateRowErrorText(Int32, Int32)

Forces the rows in the given range to update their error text.

UpdateRowHeightInfo(Int32, Boolean) UpdateRowHeightInfo(Int32, Boolean) UpdateRowHeightInfo(Int32, Boolean) UpdateRowHeightInfo(Int32, Boolean)

Forces the specified row or rows to update their height information.

UpdateStyles() UpdateStyles() UpdateStyles() UpdateStyles()

Forces the assigned styles to be reapplied to the control.

(Inherited from Control)
UpdateZOrder() UpdateZOrder() UpdateZOrder() UpdateZOrder()

Updates the control in its parent's z-order.

(Inherited from Control)
WndProc(Message) WndProc(Message) WndProc(Message) WndProc(Message)

Processes window messages.

Events

AllowUserToAddRowsChanged AllowUserToAddRowsChanged AllowUserToAddRowsChanged AllowUserToAddRowsChanged

Occurs when the value of the AllowUserToAddRows property changes.

AllowUserToDeleteRowsChanged AllowUserToDeleteRowsChanged AllowUserToDeleteRowsChanged AllowUserToDeleteRowsChanged

Occurs when the value of the AllowUserToDeleteRowsChanged property changes.

AllowUserToOrderColumnsChanged AllowUserToOrderColumnsChanged AllowUserToOrderColumnsChanged AllowUserToOrderColumnsChanged

Occurs when the value of the AllowUserToOrderColumns property changes.

AllowUserToResizeColumnsChanged AllowUserToResizeColumnsChanged AllowUserToResizeColumnsChanged AllowUserToResizeColumnsChanged

Occurs when the value of the AllowUserToResizeColumns property changes.

AllowUserToResizeRowsChanged AllowUserToResizeRowsChanged AllowUserToResizeRowsChanged AllowUserToResizeRowsChanged

Occurs when the value of the AllowUserToResizeRows property changes.

AlternatingRowsDefaultCellStyleChanged AlternatingRowsDefaultCellStyleChanged AlternatingRowsDefaultCellStyleChanged AlternatingRowsDefaultCellStyleChanged

Occurs when the value of the AlternatingRowsDefaultCellStyle property changes.

AutoGenerateColumnsChanged AutoGenerateColumnsChanged AutoGenerateColumnsChanged AutoGenerateColumnsChanged

Occurs when the value of the AutoGenerateColumnsChanged property changes.

AutoSizeChanged AutoSizeChanged AutoSizeChanged AutoSizeChanged

This event is not relevant for this class.

(Inherited from Control)
AutoSizeColumnModeChanged AutoSizeColumnModeChanged AutoSizeColumnModeChanged AutoSizeColumnModeChanged

Occurs when the value of the AutoSizeMode property of a column changes.

AutoSizeColumnsModeChanged AutoSizeColumnsModeChanged AutoSizeColumnsModeChanged AutoSizeColumnsModeChanged

Occurs when the value of the AutoSizeColumnsMode property changes.

AutoSizeRowsModeChanged AutoSizeRowsModeChanged AutoSizeRowsModeChanged AutoSizeRowsModeChanged

Occurs when the value of the DataGridViewAutoSizeRowsMode property changes.

BackColorChanged BackColorChanged BackColorChanged BackColorChanged

Occurs when the value of the BackColor property changes.

BackgroundColorChanged BackgroundColorChanged BackgroundColorChanged BackgroundColorChanged

Occurs when the value of the BackgroundColor property changes.

BackgroundImageChanged BackgroundImageChanged BackgroundImageChanged BackgroundImageChanged

Occurs when the value of the BackgroundImage property changes.

BackgroundImageLayoutChanged BackgroundImageLayoutChanged BackgroundImageLayoutChanged BackgroundImageLayoutChanged

Occurs when the BackgroundImageLayout property changes.

BindingContextChanged BindingContextChanged BindingContextChanged BindingContextChanged

Occurs when the value of the BindingContext property changes.

(Inherited from Control)
BorderStyleChanged BorderStyleChanged BorderStyleChanged BorderStyleChanged

Occurs when the value of the BorderStyle property changes.

CancelRowEdit CancelRowEdit CancelRowEdit CancelRowEdit

Occurs when the VirtualMode property of a DataGridView control is true and the cancels edits in a row.

CausesValidationChanged CausesValidationChanged CausesValidationChanged CausesValidationChanged

Occurs when the value of the CausesValidation property changes.

(Inherited from Control)
CellBeginEdit CellBeginEdit CellBeginEdit CellBeginEdit

Occurs when edit mode starts for the selected cell.

CellBorderStyleChanged CellBorderStyleChanged CellBorderStyleChanged CellBorderStyleChanged

Occurs when the border style of a cell changes.

CellClick CellClick CellClick CellClick

Occurs when any part of a cell is clicked.

CellContentClick CellContentClick CellContentClick CellContentClick

Occurs when the content within a cell is clicked.

CellContentDoubleClick CellContentDoubleClick CellContentDoubleClick CellContentDoubleClick

Occurs when the user double-clicks a cell's contents.

CellContextMenuStripChanged CellContextMenuStripChanged CellContextMenuStripChanged CellContextMenuStripChanged

Occurs when the ContextMenuStrip property changes.

CellContextMenuStripNeeded CellContextMenuStripNeeded CellContextMenuStripNeeded CellContextMenuStripNeeded

Occurs when a cell's shortcut menu is needed.

CellDoubleClick CellDoubleClick CellDoubleClick CellDoubleClick

Occurs when the user double-clicks anywhere in a cell.

CellEndEdit CellEndEdit CellEndEdit CellEndEdit

Occurs when edit mode stops for the currently selected cell.

CellEnter CellEnter CellEnter CellEnter

Occurs when the current cell changes in the DataGridView control or when the control receives input focus.

CellErrorTextChanged CellErrorTextChanged CellErrorTextChanged CellErrorTextChanged

Occurs when the value of the ErrorText property of a cell changes.

CellErrorTextNeeded CellErrorTextNeeded CellErrorTextNeeded CellErrorTextNeeded

Occurs when a cell's error text is needed.

CellFormatting CellFormatting CellFormatting CellFormatting

Occurs when the contents of a cell need to be formatted for display.

CellLeave CellLeave CellLeave CellLeave

Occurs when a cell loses input focus and is no longer the current cell.

CellMouseClick CellMouseClick CellMouseClick CellMouseClick

Occurs whenever the user clicks anywhere on a cell with the mouse.

CellMouseDoubleClick CellMouseDoubleClick CellMouseDoubleClick CellMouseDoubleClick

Occurs when a cell within the DataGridView is double-clicked.

CellMouseDown CellMouseDown CellMouseDown CellMouseDown

Occurs when the user presses a mouse button while the mouse pointer is within the boundaries of a cell.

CellMouseEnter CellMouseEnter CellMouseEnter CellMouseEnter

Occurs when the mouse pointer enters a cell.

CellMouseLeave CellMouseLeave CellMouseLeave CellMouseLeave

Occurs when the mouse pointer leaves a cell.

CellMouseMove CellMouseMove CellMouseMove CellMouseMove

Occurs when the mouse pointer moves over the DataGridView control.

CellMouseUp CellMouseUp CellMouseUp CellMouseUp

Occurs when the user releases a mouse button while over a cell.

CellPainting CellPainting CellPainting CellPainting

Occurs when a cell needs to be drawn.

CellParsing CellParsing CellParsing CellParsing

Occurs when a cell leaves edit mode if the cell value has been modified.

CellStateChanged CellStateChanged CellStateChanged CellStateChanged

Occurs when a cell state changes, such as when the cell loses or gains focus.

CellStyleChanged CellStyleChanged CellStyleChanged CellStyleChanged

Occurs when the Style property of a DataGridViewCell changes.

CellStyleContentChanged CellStyleContentChanged CellStyleContentChanged CellStyleContentChanged

Occurs when one of the values of a cell style changes.

CellToolTipTextChanged CellToolTipTextChanged CellToolTipTextChanged CellToolTipTextChanged

Occurs when the ToolTipText property value changes for a cell in the DataGridView.

CellToolTipTextNeeded CellToolTipTextNeeded CellToolTipTextNeeded CellToolTipTextNeeded

Occurs when a cell's ToolTip text is needed.

CellValidated CellValidated CellValidated CellValidated

Occurs after the cell has finished validating.

CellValidating CellValidating CellValidating CellValidating

Occurs when a cell loses input focus, enabling content validation.

CellValueChanged CellValueChanged CellValueChanged CellValueChanged

Occurs when the value of a cell changes.

CellValueNeeded CellValueNeeded CellValueNeeded 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.

CellValuePushed CellValuePushed CellValuePushed 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.

ChangeUICues ChangeUICues ChangeUICues ChangeUICues

Occurs when the focus or keyboard user interface (UI) cues change.

(Inherited from Control)
Click Click Click Click

Occurs when the control is clicked.

(Inherited from Control)
ClientSizeChanged ClientSizeChanged ClientSizeChanged ClientSizeChanged

Occurs when the value of the ClientSize property changes.

(Inherited from Control)
ColumnAdded ColumnAdded ColumnAdded ColumnAdded

Occurs when a column is added to the control.

ColumnContextMenuStripChanged ColumnContextMenuStripChanged ColumnContextMenuStripChanged ColumnContextMenuStripChanged

Occurs when the ContextMenuStrip property of a column changes.

ColumnDataPropertyNameChanged ColumnDataPropertyNameChanged ColumnDataPropertyNameChanged ColumnDataPropertyNameChanged

Occurs when the value of the DataPropertyName property for a column changes.

ColumnDefaultCellStyleChanged ColumnDefaultCellStyleChanged ColumnDefaultCellStyleChanged ColumnDefaultCellStyleChanged

Occurs when the value of the DefaultCellStyle property for a column changes.

ColumnDisplayIndexChanged ColumnDisplayIndexChanged ColumnDisplayIndexChanged ColumnDisplayIndexChanged

Occurs when the value the DisplayIndex property for a column changes.

ColumnDividerDoubleClick ColumnDividerDoubleClick ColumnDividerDoubleClick ColumnDividerDoubleClick

Occurs when the user double-clicks a divider between two columns.

ColumnDividerWidthChanged ColumnDividerWidthChanged ColumnDividerWidthChanged ColumnDividerWidthChanged

Occurs when the DividerWidth property changes.

ColumnHeaderCellChanged ColumnHeaderCellChanged ColumnHeaderCellChanged ColumnHeaderCellChanged

Occurs when the contents of a column header cell change.

ColumnHeaderMouseClick ColumnHeaderMouseClick ColumnHeaderMouseClick ColumnHeaderMouseClick

Occurs when the user clicks a column header.

ColumnHeaderMouseDoubleClick ColumnHeaderMouseDoubleClick ColumnHeaderMouseDoubleClick ColumnHeaderMouseDoubleClick

Occurs when a column header is double-clicked.

ColumnHeadersBorderStyleChanged ColumnHeadersBorderStyleChanged ColumnHeadersBorderStyleChanged ColumnHeadersBorderStyleChanged

Occurs when the ColumnHeadersBorderStyle property changes.

ColumnHeadersDefaultCellStyleChanged ColumnHeadersDefaultCellStyleChanged ColumnHeadersDefaultCellStyleChanged ColumnHeadersDefaultCellStyleChanged

Occurs when the value of the ColumnHeadersDefaultCellStyle property changes.

ColumnHeadersHeightChanged ColumnHeadersHeightChanged ColumnHeadersHeightChanged ColumnHeadersHeightChanged

Occurs when the value of the ColumnHeadersHeight property changes.

ColumnHeadersHeightSizeModeChanged ColumnHeadersHeightSizeModeChanged ColumnHeadersHeightSizeModeChanged ColumnHeadersHeightSizeModeChanged

Occurs when the value of the ColumnHeadersHeightSizeMode property changes.

ColumnMinimumWidthChanged ColumnMinimumWidthChanged ColumnMinimumWidthChanged ColumnMinimumWidthChanged

Occurs when the value of the MinimumWidth property for a column changes.

ColumnNameChanged ColumnNameChanged ColumnNameChanged ColumnNameChanged

Occurs when the value of the Name property for a column changes.

ColumnRemoved ColumnRemoved ColumnRemoved ColumnRemoved

Occurs when a column is removed from the control.

ColumnSortModeChanged ColumnSortModeChanged ColumnSortModeChanged ColumnSortModeChanged

Occurs when the value of the SortMode property for a column changes.

ColumnStateChanged ColumnStateChanged ColumnStateChanged ColumnStateChanged

Occurs when a column changes state, such as gaining or losing focus.

ColumnToolTipTextChanged ColumnToolTipTextChanged ColumnToolTipTextChanged ColumnToolTipTextChanged

Occurs when the ToolTipText property value changes for a column in the DataGridView.

ColumnWidthChanged ColumnWidthChanged ColumnWidthChanged ColumnWidthChanged

Occurs when the value of the Width property for a column changes.

ContextMenuChanged ContextMenuChanged ContextMenuChanged ContextMenuChanged

Occurs when the value of the ContextMenu property changes.

(Inherited from Control)
ContextMenuStripChanged ContextMenuStripChanged ContextMenuStripChanged ContextMenuStripChanged

Occurs when the value of the ContextMenuStrip property changes.

(Inherited from Control)
ControlAdded ControlAdded ControlAdded ControlAdded

Occurs when a new control is added to the Control.ControlCollection.

(Inherited from Control)
ControlRemoved ControlRemoved ControlRemoved ControlRemoved

Occurs when a control is removed from the Control.ControlCollection.

(Inherited from Control)
CurrentCellChanged CurrentCellChanged CurrentCellChanged CurrentCellChanged

Occurs when the CurrentCell property changes.

CurrentCellDirtyStateChanged CurrentCellDirtyStateChanged CurrentCellDirtyStateChanged CurrentCellDirtyStateChanged

Occurs when the state of a cell changes in relation to a change in its contents.

CursorChanged CursorChanged CursorChanged CursorChanged

Occurs when the value of the Cursor property changes.

(Inherited from Control)
DataBindingComplete DataBindingComplete DataBindingComplete DataBindingComplete

Occurs after a data-binding operation has finished.

DataError DataError DataError 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.

DataMemberChanged DataMemberChanged DataMemberChanged DataMemberChanged

Occurs when value of the DataMember property changes.

DataSourceChanged DataSourceChanged DataSourceChanged DataSourceChanged

Occurs when the value of the DataSource property changes.

DefaultCellStyleChanged DefaultCellStyleChanged DefaultCellStyleChanged DefaultCellStyleChanged

Occurs when the value of the DefaultCellStyle property changes.

DefaultValuesNeeded DefaultValuesNeeded DefaultValuesNeeded DefaultValuesNeeded

Occurs when the user enters the row for new records so that it can be populated with default values.

Disposed Disposed Disposed Disposed

Occurs when the component is disposed by a call to the Dispose() method.

(Inherited from Component)
DockChanged DockChanged DockChanged DockChanged

Occurs when the value of the Dock property changes.

(Inherited from Control)
DoubleClick DoubleClick DoubleClick DoubleClick

Occurs when the control is double-clicked.

(Inherited from Control)
DpiChangedAfterParent DpiChangedAfterParent DpiChangedAfterParent DpiChangedAfterParent

Occurs when the DPI setting for a control is changed programmatically after the DPI of it's parent control or form has changed.

(Inherited from Control)
DpiChangedBeforeParent DpiChangedBeforeParent DpiChangedBeforeParent DpiChangedBeforeParent

Occurs when the DPI setting for a control is changed programmatically before a DPI change event for it's parent control or form has occurred.

(Inherited from Control)
DragDrop DragDrop DragDrop DragDrop

Occurs when a drag-and-drop operation is completed.

(Inherited from Control)
DragEnter DragEnter DragEnter DragEnter

Occurs when an object is dragged into the control's bounds.

(Inherited from Control)
DragLeave DragLeave DragLeave DragLeave

Occurs when an object is dragged out of the control's bounds.

(Inherited from Control)
DragOver DragOver DragOver DragOver

Occurs when an object is dragged over the control's bounds.

(Inherited from Control)
EditingControlShowing EditingControlShowing EditingControlShowing EditingControlShowing

Occurs when a control for editing a cell is showing.

EditModeChanged EditModeChanged EditModeChanged EditModeChanged

Occurs when the value of the EditMode property changes.

EnabledChanged EnabledChanged EnabledChanged EnabledChanged

Occurs when the Enabled property value has changed.

(Inherited from Control)
Enter Enter Enter Enter

Occurs when the control is entered.

(Inherited from Control)
FontChanged FontChanged FontChanged FontChanged

Occurs when the Font property value changes.

ForeColorChanged ForeColorChanged ForeColorChanged ForeColorChanged

Occurs when the ForeColor property value changes.

GiveFeedback GiveFeedback GiveFeedback GiveFeedback

Occurs during a drag operation.

(Inherited from Control)
GotFocus GotFocus GotFocus GotFocus

Occurs when the control receives focus.

(Inherited from Control)
GridColorChanged GridColorChanged GridColorChanged GridColorChanged

Occurs when the value of the GridColor property changes.

HandleCreated HandleCreated HandleCreated HandleCreated

Occurs when a handle is created for the control.

(Inherited from Control)
HandleDestroyed HandleDestroyed HandleDestroyed HandleDestroyed

Occurs when the control's handle is in the process of being destroyed.

(Inherited from Control)
HelpRequested HelpRequested HelpRequested HelpRequested

Occurs when the user requests help for a control.

(Inherited from Control)
ImeModeChanged ImeModeChanged ImeModeChanged ImeModeChanged

Occurs when the ImeMode property has changed.

(Inherited from Control)
Invalidated Invalidated Invalidated Invalidated

Occurs when a control's display requires redrawing.

(Inherited from Control)
KeyDown KeyDown KeyDown KeyDown

Occurs when a key is pressed while the control has focus.

(Inherited from Control)
KeyPress KeyPress KeyPress KeyPress

Occurs when a character. space or backspace key is pressed while the control has focus.

(Inherited from Control)
KeyUp KeyUp KeyUp KeyUp

Occurs when a key is released while the control has focus.

(Inherited from Control)
Layout Layout Layout Layout

Occurs when a control should reposition its child controls.

(Inherited from Control)
Leave Leave Leave Leave

Occurs when the input focus leaves the control.

(Inherited from Control)
LocationChanged LocationChanged LocationChanged LocationChanged

Occurs when the Location property value has changed.

(Inherited from Control)
LostFocus LostFocus LostFocus LostFocus

Occurs when the control loses focus.

(Inherited from Control)
MarginChanged MarginChanged MarginChanged MarginChanged

Occurs when the control's margin changes.

(Inherited from Control)
MouseCaptureChanged MouseCaptureChanged MouseCaptureChanged MouseCaptureChanged

Occurs when the control loses mouse capture.

(Inherited from Control)
MouseClick MouseClick MouseClick MouseClick

Occurs when the control is clicked by the mouse.

(Inherited from Control)
MouseDoubleClick MouseDoubleClick MouseDoubleClick MouseDoubleClick

Occurs when the control is double clicked by the mouse.

(Inherited from Control)
MouseDown MouseDown MouseDown MouseDown

Occurs when the mouse pointer is over the control and a mouse button is pressed.

(Inherited from Control)
MouseEnter MouseEnter MouseEnter MouseEnter

Occurs when the mouse pointer enters the control.

(Inherited from Control)
MouseHover MouseHover MouseHover MouseHover

Occurs when the mouse pointer rests on the control.

(Inherited from Control)
MouseLeave MouseLeave MouseLeave MouseLeave

Occurs when the mouse pointer leaves the control.

(Inherited from Control)
MouseMove MouseMove MouseMove MouseMove

Occurs when the mouse pointer is moved over the control.

(Inherited from Control)
MouseUp MouseUp MouseUp MouseUp

Occurs when the mouse pointer is over the control and a mouse button is released.

(Inherited from Control)
MouseWheel MouseWheel MouseWheel MouseWheel

Occurs when the mouse wheel moves while the control has focus.

(Inherited from Control)
Move Move Move Move

Occurs when the control is moved.

(Inherited from Control)
MultiSelectChanged MultiSelectChanged MultiSelectChanged MultiSelectChanged

Occurs when the value of the MultiSelect property changes.

NewRowNeeded NewRowNeeded NewRowNeeded 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.

PaddingChanged PaddingChanged PaddingChanged PaddingChanged

Occurs when the value of the Padding property changes.

Paint Paint Paint Paint

Occurs when the control is redrawn.

(Inherited from Control)
ParentChanged ParentChanged ParentChanged ParentChanged

Occurs when the Parent property value changes.

(Inherited from Control)
PreviewKeyDown PreviewKeyDown PreviewKeyDown PreviewKeyDown

Occurs before the KeyDown event when a key is pressed while focus is on this control.

(Inherited from Control)
QueryAccessibilityHelp QueryAccessibilityHelp QueryAccessibilityHelp QueryAccessibilityHelp

Occurs when AccessibleObject is providing help to accessibility applications.

(Inherited from Control)
QueryContinueDrag QueryContinueDrag QueryContinueDrag 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)
ReadOnlyChanged ReadOnlyChanged ReadOnlyChanged ReadOnlyChanged

Occurs when the ReadOnly property changes.

RegionChanged RegionChanged RegionChanged RegionChanged

Occurs when the value of the Region property changes.

(Inherited from Control)
Resize Resize Resize Resize

Occurs when the control is resized.

(Inherited from Control)
RightToLeftChanged RightToLeftChanged RightToLeftChanged RightToLeftChanged

Occurs when the RightToLeft property value changes.

(Inherited from Control)
RowContextMenuStripChanged RowContextMenuStripChanged RowContextMenuStripChanged RowContextMenuStripChanged

Occurs when the ContextMenuStrip property changes.

RowContextMenuStripNeeded RowContextMenuStripNeeded RowContextMenuStripNeeded RowContextMenuStripNeeded

Occurs when a row's shortcut menu is needed.

RowDefaultCellStyleChanged RowDefaultCellStyleChanged RowDefaultCellStyleChanged RowDefaultCellStyleChanged

Occurs when the value of the DefaultCellStyle property for a row changes.

RowDirtyStateNeeded RowDirtyStateNeeded RowDirtyStateNeeded 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.

RowDividerDoubleClick RowDividerDoubleClick RowDividerDoubleClick RowDividerDoubleClick

Occurs when the user double-clicks the divider between two rows.

RowDividerHeightChanged RowDividerHeightChanged RowDividerHeightChanged RowDividerHeightChanged

Occurs when the DividerHeight property changes.

RowEnter RowEnter RowEnter RowEnter

Occurs when a row receives input focus but before it becomes the current row.

RowErrorTextChanged RowErrorTextChanged RowErrorTextChanged RowErrorTextChanged

Occurs when the ErrorText property of a row changes.

RowErrorTextNeeded RowErrorTextNeeded RowErrorTextNeeded RowErrorTextNeeded

Occurs when a row's error text is needed.

RowHeaderCellChanged RowHeaderCellChanged RowHeaderCellChanged RowHeaderCellChanged

Occurs when the user changes the contents of a row header cell.

RowHeaderMouseClick RowHeaderMouseClick RowHeaderMouseClick RowHeaderMouseClick

Occurs when the user clicks within the boundaries of a row header.

RowHeaderMouseDoubleClick RowHeaderMouseDoubleClick RowHeaderMouseDoubleClick RowHeaderMouseDoubleClick

Occurs when a row header is double-clicked.

RowHeadersBorderStyleChanged RowHeadersBorderStyleChanged RowHeadersBorderStyleChanged RowHeadersBorderStyleChanged

Occurs when the RowHeadersBorderStyle property changes.

RowHeadersDefaultCellStyleChanged RowHeadersDefaultCellStyleChanged RowHeadersDefaultCellStyleChanged RowHeadersDefaultCellStyleChanged

Occurs when the value of the RowHeadersDefaultCellStyle property changes.

RowHeadersWidthChanged RowHeadersWidthChanged RowHeadersWidthChanged RowHeadersWidthChanged

Occurs when value of the RowHeadersWidth property changes.

RowHeadersWidthSizeModeChanged RowHeadersWidthSizeModeChanged RowHeadersWidthSizeModeChanged RowHeadersWidthSizeModeChanged

Occurs when the value of the RowHeadersWidthSizeMode property changes.

RowHeightChanged RowHeightChanged RowHeightChanged RowHeightChanged

Occurs when the value of the Height property for a row changes.

RowHeightInfoNeeded RowHeightInfoNeeded RowHeightInfoNeeded RowHeightInfoNeeded

Occurs when information about row height is requested.

RowHeightInfoPushed RowHeightInfoPushed RowHeightInfoPushed RowHeightInfoPushed

Occurs when the user changes the height of a row.

RowLeave RowLeave RowLeave RowLeave

Occurs when a row loses input focus and is no longer the current row.

RowMinimumHeightChanged RowMinimumHeightChanged RowMinimumHeightChanged RowMinimumHeightChanged

Occurs when the value of the MinimumHeight property for a row changes.

RowPostPaint RowPostPaint RowPostPaint RowPostPaint

Occurs after a DataGridViewRow is painted.

RowPrePaint RowPrePaint RowPrePaint RowPrePaint

Occurs before a DataGridViewRow is painted

RowsAdded RowsAdded RowsAdded RowsAdded

Occurs after a new row is added to the DataGridView.

RowsDefaultCellStyleChanged RowsDefaultCellStyleChanged RowsDefaultCellStyleChanged RowsDefaultCellStyleChanged

Occurs when the value of the RowsDefaultCellStyle property changes.

RowsRemoved RowsRemoved RowsRemoved RowsRemoved

Occurs when a row or rows are deleted from the DataGridView.

RowStateChanged RowStateChanged RowStateChanged RowStateChanged

Occurs when a row changes state, such as losing or gaining input focus.

RowUnshared RowUnshared RowUnshared RowUnshared

Occurs when a row's state changes from shared to unshared.

RowValidated RowValidated RowValidated RowValidated

Occurs after a row has finished validating.

RowValidating RowValidating RowValidating RowValidating

Occurs when a row is validating.

Scroll Scroll Scroll Scroll

Occurs when the user scrolls through the control contents.

SelectionChanged SelectionChanged SelectionChanged SelectionChanged

Occurs when the current selection changes.

SizeChanged SizeChanged SizeChanged SizeChanged

Occurs when the Size property value changes.

(Inherited from Control)
SortCompare SortCompare SortCompare SortCompare

Occurs when the DataGridView compares two cell values to perform a sort operation.

Sorted Sorted Sorted Sorted

Occurs when the DataGridView control completes a sorting operation.

StyleChanged StyleChanged StyleChanged StyleChanged

Occurs when the control style changes.

SystemColorsChanged SystemColorsChanged