Thread ID: |
Created: |
Updated: |
Platform: |
Replies: |
142817 | Feb 20,2019 07:51 PM UTC | Mar 28,2019 12:56 PM UTC | WinForms | 3 |
![]() |
Tags: Spreadsheet |
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 |
This post will be permanently deleted. Are you sure you want to continue?
Sorry, An error occured while processing your request. Please try again later.
This page will automatically be redirected to the sign-in page in 10 seconds.