emaduddeen
Well-known member
- Joined
- May 5, 2010
- Messages
- 171
- Location
- Lowell, MA & Occasionally Indonesia
- Programming Experience
- Beginner
Hi Everyone,
Can you tell me what is the best hand coded way to display data from the database into textboxes?
Currently I'm using a data adapter, data set, with a parameter. After I fill the dataset, I load the data into the textboxes using this code as an example:
When the program is running this process take about 7 seconds to complete before the data is shown on the form so I know this way of doing things is not efficient.
When it's time to save the data to the database, there is no big delay in time. It's only when loading it into the textboxes.
Thanks.
Truly,
Emad
Can you tell me what is the best hand coded way to display data from the database into textboxes?
Currently I'm using a data adapter, data set, with a parameter. After I fill the dataset, I load the data into the textboxes using this code as an example:
VB.NET:
editBoxFirstName.Text = _
objDataSetCustomerDetails.Tables("Customer Details").Rows(0) _
.Item("FirstName").ToString
EditBoxLastName.Text = _
objDataSetCustomerDetails.Tables("Customer Details").Rows(0) _
.Item("LastName").ToString
... plus all the other textboxes.
When the program is running this process take about 7 seconds to complete before the data is shown on the form so I know this way of doing things is not efficient.
When it's time to save the data to the database, there is no big delay in time. It's only when loading it into the textboxes.
Thanks.
Truly,
Emad