PC Review
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
Problem: Master / Detail + DataRelation + DataView
Forums
Newsgroups
Microsoft DotNet
Microsoft ADO .NET
Problem: Master / Detail + DataRelation + DataView
![]() |
Problem: Master / Detail + DataRelation + DataView |
|
|
Thread Tools | Rate Thread |
|
|
#1 |
|
Guest
Posts: n/a
|
Hi all,
Testing with Database : Nortwind Master Table : Customers Detail Table : Orders DataRelation : relCustomersOrders On Form_Load, DataAdapter fills the dataset with above two table and creates a DataRelation. Everything is OK. When I click on a row of MasterGrid(Customers) then DetailGrid(Orders) automatically shows the related records. For filtering on MasterGrid I use a DataView on Customers table. On TextChange event of a textbox the MasterGrid shows only records matches CustomerID with the textbox. PROBLEM: Now I click on any row of MasterGrid the DeatilGrid doesn’t show the related detailed records automatically. Before using DataView on MasterGrid it was OK. But when MasterGrid is associated with DataView for filtering, the DeatailGrid doesn’t show related record. I also tried with DataViewManager but I observe that DataViewManager filters records only once after DataTable fill. After DataTable fill I try to filter on other conditions but there is no filtering. Please notify where I m doing mistake. A kind help required, Arif. |
|
![]() |
|
| Thread Tools | |
| Rate This Thread | |
|
|

Main Page 

