Information générale
Titre:
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
Répondre
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement