DataGridColumnStyle.ConcedeFocus Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Notifies a column that it must relinquish the focus to the control it is hosting.
protected public:
virtual void ConcedeFocus();
protected internal virtual void ConcedeFocus ();
abstract member ConcedeFocus : unit -> unit
override this.ConcedeFocus : unit -> unit
Protected Friend Overridable Sub ConcedeFocus ()
Examples
The following code example uses the ConcedeFocus method to hide a TextBox hosted by the DataGridTextBoxColumn.
protected:
virtual void ConcedeFocus() override
{
// Hide the TextBox when conceding focus.
DataGridTextBoxColumn::TextBox->Visible = false;
}
protected override void ConcedeFocus() {
// Hide the TextBox when conceding focus.
base.TextBox.Visible = false;
}
Protected Overrides Sub ConcedeFocus()
' Hide the TextBox when conceding focus.
MyBase.TextBox.Visible = False
End Sub
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.