void paste_Click(object sender, EventArgs e) { if (EditingActions.Paste.CanExecute(gcMultiRow1)) { EditingActions.Paste.Execute(gcMultiRow1); } } void copy_Click(object sender, EventArgs e) { if (EditingActions.Copy.CanExecute(gcMultiRow1)) { EditingActions.Copy.Execute(gcMultiRow1); } } void cut_Click(object sender, EventArgs e) { if(EditingActions.Cut.CanExecute(gcMultiRow1)) { EditingActions.Cut.Execute(gcMultiRow1); } }
Private Sub paste_Click(ByVal sender As Object, ByVal e As EventArgs) Handles paste.Click If EditingActions.Paste.CanExecute(gcMultiRow1) Then EditingActions.Paste.Execute(gcMultiRow1) End If End Sub Private Sub copy_Click(ByVal sender As Object, ByVal e As EventArgs) Handles copy.Click If EditingActions.Copy.CanExecute(gcMultiRow1) Then EditingActions.Copy.Execute(gcMultiRow1) End If End Sub Private Sub cut_Click(ByVal sender As Object, ByVal e As EventArgs) Handles cut.Click If EditingActions.Cut.CanExecute(gcMultiRow1) Then EditingActions.Cut.Execute(gcMultiRow1) End If End Sub