Hi Spotty,
Thanks for using Syncfusion product.
By default, If cell is in edit mode, focus will not loss until you commit the value using press the enter key or navigate to next cell. This is the excel behavior. To achieve your reported scenario, you could implement the custom cell renderer for SpreadsheetTextBoxCellRenderer and override the OnEditElementLostFocus method. Please refer the following code example and the sample.
VB
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 |
Please get back to us if you need any further assistance on this.
Arulraj A