How can you determine the current row and col of a datagrid. Does the datagrid have something like the flexgrids TextMatrix property referencing both col and row?
use an on mouseDown event...
This should get you started...keep in mind it's just off the top of my head...you'll probably have to edit it
Private Sub DataGrid1_MouseDown(Button As Integer, Shift As Integer, X As Single, Y As Single)
If Button = 1 Then
For I = 0 To 15
If X > DataGrid1.Columns(I).Left And X < (DataGrid1.Columns(I).Left + DataGrid1.Columns(I).Width) Then
TextBox(I).Text = DataGrid1.Columns(I).Text
End If
Next
End Sub Rob
"Programming is like art...It makes me feel like chopping my ear off."
Added the code and still get the same problem. I can click on a name and it doesnt update. If I double click it works, If I click on another name it shows the previous selection. Its always on record behind
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.