General information
Title:
Dataview - AllowNew vs DataViewManager - AllowNew
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
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only