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
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για