Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Dataview - AllowNew vs DataViewManager - AllowNew
Message
De
15/01/2004 20:22:23
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
WebForms
Titre:
Dataview - AllowNew vs DataViewManager - AllowNew
Divers
Thread ID:
00867335
Message ID:
00867335
Vues:
65
Hi !

I know that with a DataView you can control Add, Edit and Delete behaviour in the grid (something like this right)...

Dim dvReports As DataView = New DataView(dsReports.Reports)
dvReports.AllowNew = False
dgMyView.DataSource = dvReports

BUT...

1 table reports and 1 table reportDetails with a relation called Report_Details. Thus if using the dataset in the grid we get the + sign to access the Report_Details link to open the ReportDetails dataset.

I wish to use a Dataview to control the Add, Edit and Delete behaviour of the grid, thus tried using the DataViewManager.

Public myDVM As DataViewManager = New DataViewManager(dsReports)
dgMyView.SetDataBinding(myDVM, "Reports")

But how do you access these properties when working with multiple tables (thus using the DataViewManager) ? I can't seem to find the AllowNew property.

Thanks

Pierre
Répondre
Fil
Voir

Click here to load this message in the networking platform