G
Guest
I'm caught in a Catch-22 position with a fairly basic ADO.Net problem. I have
bound a data adapter called "DateTableDataAdapter" to a simple Microsoft
Access table called "DateTable" with a couple of datetime columns, a memo
column called Synopsis, a text column called Title with unique values and
another text column called Type with non-unique values.
Here's the dilemma. I need to bind a datagrid,monthcalendar and a textbox to
the adapter so that when you click on a particular date in the datagrid, the
monthcalendar reflects the current date in one of the datetimecolumns and the
textbox displays the data in the Synopsis column. I also need to be able to
filter the results by the Type column, so that I can exclude all results of
Type "B" or "C" or whatever with the click of a button, for example. The
problem is that I can't do both at the same time.
If I access the data through a dataset, the grid and monthcalendar bind
properly and stay in sync, but changing the filter on the dataset table's
defaultview doesn't have any effect - it doesn't raise an error when I change
the filter programmatically, yet nothing happens. On the other hand, if I use
a dataview, filtering works but the monthcalendar and textbox don't stay in
sync with the grid. What gives?
Any feedback would be appreciated...this is a really crucial problem for the
small project I'm working on right now.
Thanks,
-- Steve
bound a data adapter called "DateTableDataAdapter" to a simple Microsoft
Access table called "DateTable" with a couple of datetime columns, a memo
column called Synopsis, a text column called Title with unique values and
another text column called Type with non-unique values.
Here's the dilemma. I need to bind a datagrid,monthcalendar and a textbox to
the adapter so that when you click on a particular date in the datagrid, the
monthcalendar reflects the current date in one of the datetimecolumns and the
textbox displays the data in the Synopsis column. I also need to be able to
filter the results by the Type column, so that I can exclude all results of
Type "B" or "C" or whatever with the click of a button, for example. The
problem is that I can't do both at the same time.
If I access the data through a dataset, the grid and monthcalendar bind
properly and stay in sync, but changing the filter on the dataset table's
defaultview doesn't have any effect - it doesn't raise an error when I change
the filter programmatically, yet nothing happens. On the other hand, if I use
a dataview, filtering works but the monthcalendar and textbox don't stay in
sync with the grid. What gives?
Any feedback would be appreciated...this is a really crucial problem for the
small project I'm working on right now.
Thanks,
-- Steve