M
Michael
Hi,
I have a large table. Normally, the user will need to see only the data
from the past two years, but sometimes, they will need to go back further.
I have a form with a datagrid, a DateTimePicker and a command button.
What I'd like is when the user selects a new date and clicks the button,
the grid would display data from the value in the datapicker through today.
I have it working, but only if I select everything in the data adapter,
then I fill a dataset with all the records (this takes 20-30 seconds),
then I create a dataview that is the datasource for the datagrid.
When the user picks a new date, I get the value and use the dataview's
rowfilter to update the range displayed in the datagrid.
This works well, but it is slow and I read here that it is best to work
with small sets of data and then update when necessary.
There must be a better way to somehow update the data adapter and then
update the dataset, dataview and datagrid but I can't seem to get it.
Can someone please give me some ideas to test out?
Thanks
Michael
I have a large table. Normally, the user will need to see only the data
from the past two years, but sometimes, they will need to go back further.
I have a form with a datagrid, a DateTimePicker and a command button.
What I'd like is when the user selects a new date and clicks the button,
the grid would display data from the value in the datapicker through today.
I have it working, but only if I select everything in the data adapter,
then I fill a dataset with all the records (this takes 20-30 seconds),
then I create a dataview that is the datasource for the datagrid.
When the user picks a new date, I get the value and use the dataview's
rowfilter to update the range displayed in the datagrid.
This works well, but it is slow and I read here that it is best to work
with small sets of data and then update when necessary.
There must be a better way to somehow update the data adapter and then
update the dataset, dataview and datagrid but I can't seem to get it.
Can someone please give me some ideas to test out?
Thanks
Michael