I have a datagrid to show data from backend access file. when I click a button it was show. I want I click on a data and it will show in a text box of other form. anybody can help me.

Recommended Answers

All 6 Replies

you need to capture the row numner and colum number in the grid ,read it and pass the value to the textbox on another page.

please details.

Please help me urgent.

you use the grid property rowsel and colsel to specify the cell you click on then pass the value to a textbox.

Sorry. please tell another way or details.

on click event of the grid try this

Text1.Text = grid.TextMatrix(grid.RowSel, grid.ColSel)
commented: Thanks a lot +1
Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.