DataGridColumnStyle.ConcedeFocus Method

Definition

Notifies a column that it must relinquish the focus to the control it is hosting.

C#
protected internal virtual void ConcedeFocus();

Examples

The following code example uses the ConcedeFocus method to hide a TextBox hosted by the DataGridTextBoxColumn.

C#
protected override void ConcedeFocus() {
    // Hide the TextBox when conceding focus.
    base.TextBox.Visible = false;
}

Remarks

Use this method to determine when a further action is required in a derived class. For example, this method is overridden by the DataGridTextBoxColumn to hide the DataGridTextBox.

Applies to

Product Versions
.NET Framework 1.1, 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, 10