AddHandler Me.spreadsheet.WorkbookLoaded, AddressOf Spreadsheet_WorkbookLoaded
Private Sub Spreadsheet_WorkbookLoaded(ByVal sender As Object, ByVal args As Syncfusion.Windows.Forms.Spreadsheet.Helpers.WorkbookLoadedEventArgs)
Me.spreadsheet.ActiveGrid.CellRenderers("TextBox") = New CustomTextBoxCellRenderer()
End Sub
Partial Class CustomTextBoxCellRenderer
Inherits Syncfusion.Windows.Forms.Spreadsheet.CellRenderer.SpreadsheetTextBoxCellRenderer
Public Sub New()
End Sub
Protected Overrides Sub OnEditElementLostFocus(sender As Object, e As EventArgs)
MyBase.OnEditElementLostFocus(sender, e)
'To commit the cell value.
Me.Grid.CurrentCell.EndEdit()
End Sub
End Class |