J
joe pribele
sorry for the repost i just want this to be its one thread.
Please tell me what I am doing wrong.
I have the following DataTables
Establishments (Id, <other stuff>.... )
Bookings ( estabId, <blah>.... )
I created a DataSet with a relationship between id and estabid. This
all works great. Now I want to filter by Id. So I did the following.
dataSet.DefaultViewManager.DataViewSettings["Establishments"].RowFilter
= "Id=1";
This works for filtering the Establishment table.
Trace.Warn( dataSet.Tables["Establishments"].DefaultView.Count+"" );
prints out 1 like it should
However
Trace.Warn( dataSet.Tables["Bookings"].DefaultView.Count+"" ); prints
out 10 which is the total number of rows in Bookings.
I thought the DataViewManager is suppose to work with the
relationships ? The whole point of this is that I want to get a view
Please tell me what I am doing wrong.
I have the following DataTables
Establishments (Id, <other stuff>.... )
Bookings ( estabId, <blah>.... )
I created a DataSet with a relationship between id and estabid. This
all works great. Now I want to filter by Id. So I did the following.
dataSet.DefaultViewManager.DataViewSettings["Establishments"].RowFilter
= "Id=1";
This works for filtering the Establishment table.
Trace.Warn( dataSet.Tables["Establishments"].DefaultView.Count+"" );
prints out 1 like it should
However
Trace.Warn( dataSet.Tables["Bookings"].DefaultView.Count+"" ); prints
out 10 which is the total number of rows in Bookings.
I thought the DataViewManager is suppose to work with the
relationships ? The whole point of this is that I want to get a view