Pass Data From Data Grid in Form To Text Box in The Other Form

Posted by Hosseingholi under C# on 4/11/2010 | Views : 1954 | Status : [Member] | Replies : 1
How can I pass Data from data grid to text box while the record in the Data Grid is highlighted.
Text Box in Form1 & DataGrid in Form2
How Can?


Posted by: Vuyiswamb on: 4/12/2010 [Member] [MVP] [Administrator] NotApplicable

Well there are Different ways of doing this. Someone will suggest an efficient way of doing this, but what you can do is that on your gridview selected-index changed event you can get the ID of the Row that is selected and query the database based on that Query and display only that field on that textbox.

Thank you for posting at Dotnetfunda

Hosseingholi, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response