G
Guest
Hi,
I'm using a text box's text changed event to autocomplete a datagrid as the
user types in the search value ('A' returns many, 'Ax' returns fewer etc).
The first few letters typed in take a while to populate the datagrid. Once
it populates, there is no further problem, each new text change event
immediately returns a fresh set of rows.
I found it slows down when binding the dataset to the datagrid the first
time, but subsequent times no problem. I have pinged the DB with a connection
before starting the initial connection but this makes no difference.
// Bind the data grid to the results
dgDisplayResults.DataSource = dsResults; // slows here first time
round,then ok
Any clues as to what could be causing this?
Many thanks for any ideas
Ant
I'm using a text box's text changed event to autocomplete a datagrid as the
user types in the search value ('A' returns many, 'Ax' returns fewer etc).
The first few letters typed in take a while to populate the datagrid. Once
it populates, there is no further problem, each new text change event
immediately returns a fresh set of rows.
I found it slows down when binding the dataset to the datagrid the first
time, but subsequent times no problem. I have pinged the DB with a connection
before starting the initial connection but this makes no difference.
// Bind the data grid to the results
dgDisplayResults.DataSource = dsResults; // slows here first time
round,then ok
Any clues as to what could be causing this?
Many thanks for any ideas
Ant