Home Forums WinForms controls Xceed Grid for WinForms Click event is not firing on a cell

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

    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)

    User (Old forums)
    Member
    Post count: 23064

    You need to new an EventHandler for this to work.

    e.g.

            cell.Click += new EventHandler(cell_Click);

    Imported from legacy forums. Posted by André (had 1389 views)

    User (Old forums)
    Member
    Post count: 23064

    Thanks Andre,

     actually it works the same with or without the “new EventHandler”

     

    but either way this is working for me now

    Thanks,

     

     

    Imported from legacy forums. Posted by Nick (had 2023 views)

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