W
Waxabi X
I have created a filtered dataview and bound it to a datagrid. Based
on certain events within the program I change the DataView.Filter
property and the grid subsequently reflects the correct recordset.
When I insert a record into the filtered DataView using
DataView.AddNew(), the other records in the underlying DataTable are
appropriately filtered when a DataRow.Filter is applied but the new
record inserted is included in the DataView's filtered set regardless
of what the .Filter property is set to. In other words, the new record
will not filter out of the view. If I commit the change and refill the
dataset the new record exhibits the appropriate filtering behavior;
but this is an undesirable workaround for a variety of reasons.
Incidentally this is using the Oracle Data Provider (Oracle ODP
9.0.2). Is this a bug in ADO or the provider or is there a step I need
to take to keep this undesired behavior from happening that I am not
aware of?
on certain events within the program I change the DataView.Filter
property and the grid subsequently reflects the correct recordset.
When I insert a record into the filtered DataView using
DataView.AddNew(), the other records in the underlying DataTable are
appropriately filtered when a DataRow.Filter is applied but the new
record inserted is included in the DataView's filtered set regardless
of what the .Filter property is set to. In other words, the new record
will not filter out of the view. If I commit the change and refill the
dataset the new record exhibits the appropriate filtering behavior;
but this is an undesirable workaround for a variety of reasons.
Incidentally this is using the Oracle Data Provider (Oracle ODP
9.0.2). Is this a bug in ADO or the provider or is there a step I need
to take to keep this undesired behavior from happening that I am not
aware of?