Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Passing data from one form to another (textbox to datagrid)

Status
Not open for further replies.

TDENIS

Programmer
Feb 26, 2004
1
US
I filled a datagrid with binding the DataSource and DataMember on form1 (using iDB2DataAdaptor). When the user clicks on a row, that record is passed to form2 and put in a textbox where it can be changed. When the record is changed and they click OK, I want to pass the changed textbox data back to the datagrid and update it. My question is: How do I pass textbox information(from form2) back to the datagrid(to form1)?
PS. I am at a beginner level with VB.net and no previous VB experience.
 
Well you could store it in a temp text file but I know that this is not the best solution.

aspro
 
Well data is normally displayed in a datagrid through databinding. So you need to change the row's value when your textbox is changed.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top