UserDesignerOptions.DataBindingMode Property
Specifies the binding mode used to provide dynamic content to reports.
Namespace: DevExpress.XtraReports.Configuration
Assembly:
DevExpress.XtraReports.v20.2.dll
NuGet Packages:
DevExpress.Reporting.Core, DevExpress.WindowsDesktop.Reporting.Core
Declaration
public DataBindingMode DataBindingMode { get; set; }
Public Property DataBindingMode As DataBindingMode
Property Value
Property Paths
You can access this nested property as listed below:
Object Type |
Path to DataBindingMode |
Settings |
|
The DataBindingMode property is available in the Report Designer Options dialog in Visual Studio at design time.
Set the DataBindingMode property at the application’s startup to specify the default binding mode for an End-User Report Designer:
WinForms
static class Program {
static void Main() {
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DataBindingMode =
DevExpress.XtraReports.UI.DataBindingMode.ExpressionsAdvanced;
// ...
}
}
Module Program
Private Sub Main()
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DataBindingMode =
DevExpress.XtraReports.UI.DataBindingMode.ExpressionsAdvanced
' ...
End Sub
End Module
WPF
public partial class App : Application {
protected override void OnStartup(StartupEventArgs e) {
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DataBindingMode =
DevExpress.XtraReports.UI.DataBindingMode.ExpressionsAdvanced;
base.OnStartup(e);
}
}
Public Partial Class App
Inherits Application
Protected Overrides Sub OnStartup(ByVal e As StartupEventArgs)
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DataBindingMode =
DevExpress.XtraReports.UI.DataBindingMode.ExpressionsAdvanced
MyBase.OnStartup(e)
End Sub
End Class
ASP.NET
public class Global : System.Web.HttpApplication {
protected void Application_Start(Object sender, EventArgs e) {
DevExpress.XtraReports.Configuration.Settings.Default.UserDesignerOptions.DataBindingMode =
DevExpress.XtraReports.UI.DataBindingMode.ExpressionsAdvanced;
//...
}
}
Public Class [Global]
Inherits System.Web.HttpApplication
Protected Sub Application_Start(ByVal sender As Object, ByVal e As EventArgs)
DevExpress.XtraReports.Configuration.Settings.[Default].UserDesignerOptions.DataBindingMode =
DevExpress.XtraReports.UI.DataBindingMode.ExpressionsAdvanced
' ...
End Sub
End Class
See the Data Binding Modes document to learn about available binding modes.
The following code snippets (auto-collected from DevExpress Examples) contain references to the DataBindingMode property.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.
See Also