Home Forums WinForms controls Xceed Grid for WinForms Problem with adding hander

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

    Why this handler doesnot fire anything… ?
    following is my code.

    Private Sub Form1_Load…
    Dim cell As DataCell
    For Each cell In Grid1.DataRowTemplate.Cells
    AddHandler Cell.Click, AddressOf showDetail
    Next Cell
    DataAdapter1.SelectCommand = New SqlCommand(“Select * from Table1,Sqlcon)
    Sqlda.Fill(Dataset1)
    Grid1.DataSource = Dataset1.Tables(0)
    End Sub

    Private Sub showDetail (Byval sender As System.Object, ByVal e As System.EventArgs)
    msgbox (“click”)
    End Sub

    Imported from legacy forums. Posted by PETE (had 1914 views)

    Xceed Support
    Member
    Post count: 5658

    I just tested your code and it works. I copied-pasted it directly in my sample application and it worked instantly. Each time I clicked, the “click” prompt did appear.

    Imported from legacy forums. Posted by CharlesB (had 2842 views)

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