DataGridViewRowsRemovedEventHandler 委托

定义

表示将处理 RowsRemoved 事件 DataGridView的方法。

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

参数

sender
Object

事件源。

注解

DataGridView 控件中删除行时,后续行的索引号会降低以补偿。

有关如何处理事件的详细信息,请参阅 处理和引发事件

创建 DataGridViewRowsRemovedEventHandler 委托时,可以标识将处理事件的方法。 若要将事件与事件处理程序相关联,请将委托的实例添加到事件。 除非删除委托,否则每当事件发生时调用事件处理程序。 有关事件处理程序委托的详细信息,请参阅 处理和引发事件

扩展方法

名称 说明
GetMethodInfo(Delegate)

获取一个对象,该对象表示由指定委托表示的方法。

适用于

另请参阅