Home Forums WinForms controls Xceed Grid for WinForms Fire an event, when we double click on a Row on a Grid

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

    HI all,

     I am having a grid on .Net, I need to pop a another window when we double click on a row of the grid. How to do that, appreciate if any one can illustrate it with small sample code.

     Note : Grouping bar (top) removed and Row selector is not there.

     – Regards

     

    Imported from legacy forums. Posted by bdmsoft (had 1586 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi All,

    I tried following way.

                    foreach (Xceed.Grid.Cell c in gcSuppliers.DataRowTemplate.Cells)
                    {
                        c.DoubleClick += new System.EventHandler(this.Row_DoubleClick);
                    }

     but that is firing multiple events (feel equal to number of cells[colums] on the grid), I need only one event firing for one row click.

    Imported from legacy forums. Posted by bdmsoft (had 427 views)

    User (Old forums)
    Member
    Post count: 23064

    This event is triggered only once, since the double click happens at the cell level, so only one cell receives the DoubleClick event.  Can you give more details on what you are doing, how you set up your grid, with a code snippet?

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

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