Which GDBG event fires

Which GDBG event fires after a user edits mult cells at the same time with a delete key or a paste action? neither the rowSaved nor CurrentCellEditingComplete events fire. I use those events to save data back to the DB.

Thanks

3 Replies

AD Administrator Syncfusion Team February 9, 2007 05:52 PM UTC

Hi Prumery,

Which GDBG event fires after a user edits mult cells at the same time with a paste action?
>>>>>>>>
You can use the PasteCellText event of the grid. It occurs for each cell when text is pasted from a buffer into several cells.

Which GDBG event fires after a user edits mult cells at the same time with a delete key?
>>>>>>>>
Try handling the ClearCells event of the grid to delete key action for range of cells.

Best regards,
Haneef


PR Patrick Rumery February 9, 2007 08:14 PM UTC

The grid data bound grid does not have either of those events listed. How do you suggest I create them in VB.net?


AD Administrator Syncfusion Team February 9, 2007 08:44 PM UTC

Hi Prumery,

You can access the both event from GridModel class. Please find the code snippet below

//form load event
AddHandler GridControl1.Model.PasteCellText, New Syncfusion.Windows.Forms.Grid.GridPasteCellTextEventHandler(AddressOf GridModel_PastCellText)
AddHandler GridControl1.Model.ClearingCells ,New Syncfusion.Windows.Forms.Grid.GridClearingCellsEventHandler (AddressOf GridModel_ClearCells)

Private Sub GridModel_PastCellText(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridPasteCellTextEventArgs)
Console.WriteLine("Paste Cell Text Fired....")
End Sub
Private Sub GridModel_ClearCells(ByVal sender As Object, ByVal e As Syncfusion.Windows.Forms.Grid.GridClearingCellsEventArgs)
Console.WriteLine("ClearCells fired")
End Sub

Best regards,
Haneef

Loader.
Up arrow icon