Home Forums WinForms controls Xceed Grid for WinForms Grid Row Click event

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

    Hi all,

    I am new to Xceeed grid. I want to do a row click event but how can i do it ? I don’t have ideas. Can anyone show me some sample code so that i can catch it. Thanks.

    Imported from legacy forums. Posted by takume (had 2879 views)

    User (Old forums)
    Member
    Post count: 23064

    I tried the following code but it seems no response on grid row click

    Private Sub GridRow_Click(ByVal sender As Object, e As System.EventArgs)
    MessageBox.Show(“Hi”)
    End Sub

    Private Sub SubGridEvent()

    Dim oRow As Xceed.Grid.DataRow
    For Each oRow In gdCustomer.DataRows
    AddHandler oRow.Click, AddressOf Me.GridRow_Click
    Next oRow

    End Sub

    Imported from legacy forums. Posted by takume (had 289 views)

    User (Old forums)
    Member
    Post count: 23064

    Hi guys,

    i tried many times but still cannot get it work. Can anyone send me a piece of code so that i can see what’s the different..and why i can’t get it work. Thanks

    Imported from legacy forums. Posted by takume (had 256 views)

    User (Old forums)
    Member
    Post count: 23064

    You actually click the cells not the row.

    From the sender of that event you can get it’s parent row.

    Imported from legacy forums. Posted by Chris (had 4022 views)

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