Add handler to textboxcolumn in your datagrid

NicoVB

Well-known member
Joined
Jan 2, 2002
Messages
160
Location
Belgium
I have a datagrid filled with data from a database. I want to add a handler to all textboxes in the columns of my datagrid.



Code:
        Dim Textcol As DataGridColumnStyle
            For Each Textcol In GridEx1.TableStyles("KON").GridColumnStyles
                AddHandler Textcol.MouseDown, New MouseEventHandler(AddressOf TextBoxMouseDownHandler)
                AddHandler Textcol.DoubleClick, New EventHandler(AddressOf TextBoxDoubleClickHandler)
            Next

But these code doenst seem to work. How do you do this????

Nico
 
Back
Top