3
Contributors
6
Replies
8
Views
6 Years
Discussion Span
Last Post by AndreRet
0

You can use the following -

Text1.Text = Datagrid1.TextMatrix(Datagrid1.Row, 1) 'The 1 at the end refers to the coloumn value in the grid, in this case coloumn 1...
0

how about when you click for example the lastname then it will transfer the whole data on the datagrid to the textboxes

0

Use the same code, just change the coloumn values -

Text1.Text = Datagrid1.TextMatrix(Datagrid1.Row, 1)
Text2.Text = Datagrid1.TextMatrix(Datagrid1.Row, 2)
Text3.Text = Datagrid1.TextMatrix(Datagrid1.Row, 3)
'and so on...
0

If you want it all in one text box, the following -

Text1.Text = Datagrid1.TextMatrix(Datagrid1.Row, 1)
Text1.Text = Text1.Text & VBCRLF & Text1.Text = Datagrid1.TextMatrix(Datagrid1.Row, 2) 'and so on ...
0

Kismat, Being a new member and all I can almost understand that you do not know our posting rules, soooo, read them Here . We DO NOT allow the hijacking of other members threads.:)

How about you open your own post and I will gladly help.

Also, show me what YOU have done so far, it might make it easier for me to answer your question (THE NEW ONE) better.;)

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.