Category / Section
How to trigger an event when a value is selected and enter is pressed?
1 min read
By using the CurrentCellEditingComplete, You can trigger an event when a value is selected and enter is pressed.This event is invoked every time when you click on the cell and press enter or when you move from one cell to another without editing the PivotGrid.
C#
private void pivotGrid1_Loaded(object sender, RoutedEventArgs e) { ….. ….. pivotGrid1.InternalGrid.CommitCellInfo += new Syncfusion.Windows.Controls.Grid.GridCommitCellInfoEventHandler(internalgridcommitcellinfo); pivotGrid1.InternalGrid.CurrentCellEditingComplete += new Syncfusion.Windows.ComponentModel.GridRoutedEventHandler(InternalGrid_CurrentCellEditingComplete); } private void InternalGrid_CurrentCellEditingComplete(object sender, Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs args) { } private void internalgridcommitcellinfo(object sender, Syncfusion.Windows.Controls.Grid.GridCommitCellInfoEventArgs e) { }
VB
Private Sub pivotGrid1_Loaded(ByVal sender As Object, ByVal e As RoutedEventArgs) AddHandler pivotGrid1.InternalGrid.CommitCellInfo, AddressOf internalgridcommitcellinfo AddHandler pivotGrid1.InternalGrid.CurrentCellEditingComplete, AddressOf InternalGrid_CurrentCellEditingComplete End Sub Private Sub InternalGrid_CurrentCellEditingComplete(ByVal sender As Object, ByVal args As Syncfusion.Windows.ComponentModel.SyncfusionRoutedEventArgs) End Sub Private Sub internalgridcommitcellinfo(ByVal sender As Object, ByVal e As Syncfusion.Windows.Controls.Grid.GridCommitCellInfoEventArgs) End Sub