You are not logged in.
This forum has been archived and no longer accepts new user registrations. Please report your questions, problems, and feedback to the issue page of ReoGrid on GitHub. Thank you for your cooperation.
Pages: 1
Topic closed
Hi Jing,
Currently am using version 0.9.0.0 but I am facing this problem that the events like cellDatachanged, AfterCellEdit e.t.c don't seem to be triggered when I manipulate the grid. Am using AddHandler to add this events but nothing seems to be triggered. But I have noticed when using version 0.8.5, these events get triggered. What am I doing wrong, because am defining the AddHandler on form load? In addition am using vb.net
Thanks
Offline
Can you please provide some example code?
If your workbook is loaded from any Excel file, make sure you add events after that loading. Since when a workbook loaded from Excel, all the worksheets will be reset, including its event handlers.
Offline
First I defined grdData from ReogridControl, then on form load I assigned an instance of the current worksheet to the grdCurrSheet.
Public WithEvents grdCurrSheet As unvell.ReoGrid.Worksheet
Private Sub frmEditor_Load(sender As Object, e As EventArgs) Handles MyBase.Load
grdCurrSheet = grdData.CurrentWorksheet
frmMain.clsGrids.SetData(grdData)
grdData.Visible = False
autoTranslate(Me)
End Sub
Private Sub grdCurrSheet_AfterCellEdit(sender As Object, e As CellAfterEditEventArgs) Handles grdCurrSheet.AfterCellEdit
MessageBox.Show(e.NewData)
End Sub
What am I doing wrong?
Offline
Hi Jing,
I think I have discovered what is causing the problem. I have been loading an excel file and that''s why. How do I add events after loading data from excel?
Offline
Where the code to load Excel file?
To make sure event handlers work, the flow should like this:
use workbook.Load to load from Excel file
dim currentWorksheet = workbook.CurrentWorksheet
add event handlers for currentWorksheet
Last edited by Jingwood (2016-01-30 00:39:14)
Offline
Thanks, I got it to work.
Offline
Pages: 1
Topic closed