Home Forums WinForms controls Xceed Grid for WinForms Double click row event problem

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

    Hi, I want to be able to just double click a row (Or any cell in that row) and fire an event. Any ideas?

    Imported from legacy forums. Posted by DarenHawes (had 2537 views)

    User (Old forums)
    Member
    Post count: 23064

    In VB.Net. Thx

    Imported from legacy forums. Posted by DarenHawes (had 273 views)

    User (Old forums)
    Member
    Post count: 23064

    You can catch the DoubleClick-event of each Cell separately. To catch the event of all the cells of all the DataRows, use this code:<code>Dim cell As Xceed.Grid.Cell
    For Each cell In myGrid.DataRowTemplate.Cells
    AddHandler cell.DoubleClick, AddressOf Me.Cell_DoubleClick
    Next
    Private Sub Cell_DoubleClick(ByVal sender As Object, ByVal e As EventArgs)
    Dim cell As Xceed.Grid.Cell = sender
    Dim row As Xceed.Grid.DataRow = cell.ParentRow
    End Sub</code>(PS: I’m a C# programmer)

    Imported from legacy forums. Posted by Tommy (had 3450 views)

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