QuestionEventHandler Delegat

Definicja

Reprezentuje metodę, która obsłuży CancelRowEdit zdarzenie lub RowDirtyStateNeeded zdarzenie klasy DataGridView.

public delegate void QuestionEventHandler(System::Object ^ sender, QuestionEventArgs ^ e);
public delegate void QuestionEventHandler(object sender, QuestionEventArgs e);
public delegate void QuestionEventHandler(object? sender, QuestionEventArgs e);
type QuestionEventHandler = delegate of obj * QuestionEventArgs -> unit
Public Delegate Sub QuestionEventHandler(sender As Object, e As QuestionEventArgs)

Parametry

sender
Object

Źródło zdarzenia.

e
QuestionEventArgs

Element QuestionEventArgs zawierający dane zdarzenia.

Uwagi

Podczas tworzenia delegata należy zidentyfikować metodę QuestionEventHandler , która będzie obsługiwać zdarzenie. Aby skojarzyć zdarzenie z programem obsługi zdarzeń, dodaj wystąpienie delegata do zdarzenia. Program obsługi zdarzeń jest wywoływany przy każdym wystąpieniu zdarzenia, o ile nie usunięto delegata. Aby uzyskać więcej informacji na temat delegatów programu obsługi zdarzeń, zobacz Obsługa i podnoszenie zdarzeń.

Ten delegat jest używany podczas implementowania trybu wirtualnego w kontrolce DataGridView .

Metody rozszerzania

GetMethodInfo(Delegate)

Pobiera obiekt reprezentujący metodę reprezentowaną przez określonego delegata.

Dotyczy

Zobacz też