Szerkesztés

Megosztás a következőn keresztül:


DataGrid.OnAutoGeneratedColumns(EventArgs) Method

Definition

Raises the AutoGeneratedColumns event.

protected:
 virtual void OnAutoGeneratedColumns(EventArgs ^ e);
protected virtual void OnAutoGeneratedColumns (EventArgs e);
abstract member OnAutoGeneratedColumns : EventArgs -> unit
override this.OnAutoGeneratedColumns : EventArgs -> unit
Protected Overridable Sub OnAutoGeneratedColumns (e As EventArgs)

Parameters

e
EventArgs

The data for the event.

Remarks

Raising an event invokes the event handler through a delegate. For more information, see Handling and Raising Events.

The OnAutoGeneratedColumns method also allows derived classes to handle the event without attaching a delegate. This is the preferred technique for handling the event in a derived class.

Notes to Inheritors

When overriding OnAutoGeneratedColumns(EventArgs) in a derived class, be sure to call the base class' OnAutoGeneratedColumns(EventArgs) method so that registered delegates receive the event.

Applies to