Home Forums WinForms controls Xceed Grid for WinForms Click event hander in boundgrid

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • User (Old forums)
    Member
    Post count: 23064
    #13191 |

    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)

    User (Old forums)
    Member
    Post count: 23064

    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)

    User (Old forums)
    Member
    Post count: 23064

    Yes Tommy. I put this code after the binding and it works now.

    Thank You.

    Imported from legacy forums. Posted by PETE (had 3658 views)

Viewing 3 posts - 1 through 3 (of 3 total)
  • You must be logged in to reply to this topic.