J
jp2msft
We have a database with one table of 15000 employees and 21 fields. (Yes, it
needs to be restructured, but that isn't happening today).
I have a DataGridView that is databound to the table. Whenever the
application starts, it takes about 5-10 seconds to populate this DataGrid
(depending on how congested our internal network is).
I also have ComboBox controls for each of the individual fields in the
database. Before, I was filling these in programatically from data in the
TableAdapter for the DataGridView.
While reading through a "How-To" book, I saw where I could have my
ComboBoxes also bound to the data. Hoping for increased effeciency, I data
bound each of my 21 ComboBoxes with a column from my table.
Now, whenever I start my application, instead of taking 5-10 seconds to
populate the DataGridView and display the form, it now takes (5-10 seconds) *
(1 DataGridView + 21 ComboBoxes) to show the form.
Ouch! I thought my application had crashed for an unknown reason!
How do I "unbind" these controls now? There isn't anything in this "How-To"
book on undoing the evils it started.
Regards,
Joe
"How-To" book: Microsoft Visual Basic 2005 "Step by Step"
needs to be restructured, but that isn't happening today).
I have a DataGridView that is databound to the table. Whenever the
application starts, it takes about 5-10 seconds to populate this DataGrid
(depending on how congested our internal network is).
I also have ComboBox controls for each of the individual fields in the
database. Before, I was filling these in programatically from data in the
TableAdapter for the DataGridView.
While reading through a "How-To" book, I saw where I could have my
ComboBoxes also bound to the data. Hoping for increased effeciency, I data
bound each of my 21 ComboBoxes with a column from my table.
Now, whenever I start my application, instead of taking 5-10 seconds to
populate the DataGridView and display the form, it now takes (5-10 seconds) *
(1 DataGridView + 21 ComboBoxes) to show the form.
Ouch! I thought my application had crashed for an unknown reason!
How do I "unbind" these controls now? There isn't anything in this "How-To"
book on undoing the evils it started.
Regards,
Joe
"How-To" book: Microsoft Visual Basic 2005 "Step by Step"