DataGridView.EditingPanel Property

Definition

Gets the panel that contains the EditingControl.

C#
[System.ComponentModel.Browsable(false)]
public System.Windows.Forms.Panel EditingPanel { get; }

Property Value

The Panel that contains the EditingControl.

Attributes

Examples

The following code example illustrates how to use the EditingPanel property in a DataGridView control to visually differentiate a cell when it is in edit mode. In this example, the BorderStyle of the cell's editing panel is set to Fixed3D. To run this example, paste the code into a form that contains a DataGridView named dataGridView1.

C#
this.dataGridView1.EditingPanel.BorderStyle = BorderStyle.Fixed3D;

Remarks

Unlike the EditingControl property, which is null when the current cell is not in edit mode, the EditingPanel property is always available.

Applies to

Product Versions
.NET Framework 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1
Windows Desktop 3.0, 3.1, 5, 6, 7, 8, 9

See also