Editare

Partajați prin


DataGridColumnStyle.ConcedeFocus Method

Definition

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