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.
Applies to
Commenti e suggerimenti
https://aka.ms/ContentUserFeedback.
Presto disponibile: Nel corso del 2024 verranno gradualmente disattivati i problemi di GitHub come meccanismo di feedback per il contenuto e ciò verrà sostituito con un nuovo sistema di feedback. Per altre informazioni, vedereInvia e visualizza il feedback per