DataGridViewComboBoxEditingControl.ApplyCellStyleToEditingControl Method (DataGridViewCellStyle)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Changes the control's user interface (UI) to be consistent with the specified cell style.

Namespace:   System.Windows.Forms
Assembly:  System.Windows.Forms (in System.Windows.Forms.dll)

public virtual void ApplyCellStyleToEditingControl(
	DataGridViewCellStyle dataGridViewCellStyle
)

Parameters

dataGridViewCellStyle
Type: System.Windows.Forms.DataGridViewCellStyle

The DataGridViewCellStyle to use as a pattern for the UI.

The Font, BackColor, and ForeColor properties of the control align with the corresponding properties of the dataGridViewCellStyle parameter value.

.NET Framework
Available since 2.0
Return to top
Show: