Home Forums WinForms controls Xceed Grid for WinForms Row DoubleClick event

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

    Hi All
    I have added an event handler for Row double Click in the AddingDataRow event.
    but the double click event doesn’t fire.

    in AddingDataRow event I added:
    Xceed.Grid.DataRow row = e.DataRow;
    row.DoubleClick +=new EventHandler(DataRow_DoubleClick);

    DataRow_DoubleClick never fires.

    Any ideas?
    TIA

    Imported from legacy forums. Posted by beny (had 1885 views)

    User (Old forums)
    Member
    Post count: 23064

    You have to subscribe to the DoubleClick on the cell :

    foreach( DataCell cell in e.DataRow.Cells )
    {
    cell.DoubleClick += new EventHandler(cell_DoubleClick);
    }

    The double click is sent to the editor first, so you will get the double click only once into the edit mode. If the GridControl is set to ReadOnly, then the double click is sent to the cell the first time.

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

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