A
Abra
Is it possible to fill a ADO.NET dataset incrementally ? (I mean to call
the DataAdapter Fill() method several times, as I did not found a Add()
method)
I would like to call in a background thread the Fill method several
times, only with a limited number of records, as I have very many
records in the database. The dataset is attached to a control (listbox)
and I would like that the listbox appears quickly on screen with some 50
records (for more than that the user has to scroll anyway) and fill it
later further in background. Do I have to deassign the dataset from the
listbox before actualizing it (by calling the Fill method), and reassign
it after that ? Would be better to use for the subsequent database
fetches a new dataset that I merge each time to the "main" dataset, that
is attached to the listbox ? Or is there any better way to achieve this
behaviour ?
Thanks in advance.
Regards,
Abra
the DataAdapter Fill() method several times, as I did not found a Add()
method)
I would like to call in a background thread the Fill method several
times, only with a limited number of records, as I have very many
records in the database. The dataset is attached to a control (listbox)
and I would like that the listbox appears quickly on screen with some 50
records (for more than that the user has to scroll anyway) and fill it
later further in background. Do I have to deassign the dataset from the
listbox before actualizing it (by calling the Fill method), and reassign
it after that ? Would be better to use for the subsequent database
fetches a new dataset that I merge each time to the "main" dataset, that
is attached to the listbox ? Or is there any better way to achieve this
behaviour ?
Thanks in advance.
Regards,
Abra