Home › Forums › WinForms controls › Xceed Grid for WinForms › Click event hander in boundgrid
Following is my code for a click event in unbound grid But this same code doesnot work with bound grid!!
‘adding event handler in form load Dim cell As DataCell For Each cell In mygrid.DataRowTemplate.Cells AddHandler cell.Click, AddressOf Me.Cel_Click Next cell
Is there any different way in accessing the cells in bound and unbound grid?
Imported from legacy forums. Posted by PETE (had 2518 views)
Is this code called before or after binding the grid to the data? It should be called <b>after</b> binding.
Imported from legacy forums. Posted by Tommy (had 162 views)
Yes Tommy. I put this code after the binding and it works now.
Imported from legacy forums. Posted by PETE (had 3658 views)