OnCancelCommand、OnDeleteCommand、OnEditCommand、OnItemCommand、OnSortCommand 以及OnUpdateCommand 这六个事件程序的宣告语法,如下所示:
Sub 事件程序名称(Sender As Object, e As DataGridCommandEventArgs)
...
End Sub
其中参数e 的属性如下表所示:
OnItemCreated 事件的宣告
OnItemCreated 这个事件程序的宣告语法,如下所示:
Sub OnItemCreated(Sender As Object, e As DataGridItemCreatedEventArgs)
...
End Sub
其中参数e 的属性如下表所示:
OnPageIndexChanged 事件的宣告
OnPageIndexChanged 这个事件程序的宣告语法,如下所示:
Sub OnPageIndexChanged(Sender As Object, e As
DataGridPageChangedEventArgs)
...
End Sub
文章来源于领测软件测试网 https://www.ltesting.net/