Home › Forums › WinForms controls › Xceed Grid for WinForms › Click event is not firing on a cell
I am adding an event handler to each of the cells in a datarow template like this.
foreach (DataCell cell in lstCaseload.DataRowTemplate.Cells)
cell.Click += (cell_Click);
Where lstCaelaod is the grid control
but the event never seems to fire …
any suggestions ??
thanks , Nick
Imported from legacy forums. Posted by Nick (had 1394 views)
You need to new an EventHandler for this to work.
cell.Click += new EventHandler(cell_Click);
Imported from legacy forums. Posted by André (had 1389 views)
actually it works the same with or without the “new EventHandler”
but either way this is working for me now
Imported from legacy forums. Posted by Nick (had 2023 views)