Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Dataview - AllowNew vs DataViewManager - AllowNew
Message
From
15/01/2004 20:22:23
 
 
To
All
General information
Forum:
ASP.NET
Category:
WebForms
Title:
Dataview - AllowNew vs DataViewManager - AllowNew
Miscellaneous
Thread ID:
00867335
Message ID:
00867335
Views:
66
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
Reply
Map
View

Click here to load this message in the networking platform