Populate Textbox values to Textbox from unrelated table
Software vb.net & Sql Server 2005"
I need sample code on how to Populate Textbox value to Textbox from unrelated table?
Thanks!
.NET ProgrammingVisual Basic.NET
Last Comment
Fernando Soto
8/22/2022 - Mon
Fernando Soto
Not enough info. How are you getting the data from the database?
What does this mean, "Populate Textbox value to Textbox from unrelated table?"
What type of application are you developing?
Can you please post the code you are using.
dave_sky
ASKER
Developing a Windows form application using a dataset to access the database.
tblWorkorder has TextboxA to be filled with tblChecklists TextboxB value using buttonclick event.
Fernando Soto
So you are using a DataSet and a DataTable object to organize your data from the database. So your DataTable may have many rows that were returned by the SQL query.
I am assuming that TextboxA and TextboxB are Windows Form TextBox objects placed on the form. I am also assuming that tblWorkorder and tblChecklists are each a DataTable object that are assigned to the DataSet that hold the data from the database. I can not understand what this means, "tblWorkorder has TextboxA to be filled with tblChecklists TextboxB value using buttonclick event.", can you explain this in a bit more detail?
What does this mean, "Populate Textbox value to Textbox from unrelated table?"
What type of application are you developing?
Can you please post the code you are using.