The requested page is not available for the requested platform. You are viewing the content for Default platform.

UserDesignerOptions.DataBindingMode Property

Specifies the binding mode used to provide dynamic content to reports.

Namespace: DevExpress.XtraReports.Configuration

Assembly: DevExpress.XtraReports.v19.1.dll

Declaration

public DataBindingMode DataBindingMode { get; set; }
Public Property DataBindingMode As DataBindingMode

Property Value

Type Description
DataBindingMode

A DataBindingMode enumeration value.

Remarks

The DataBindingMode property is available in the Report Designer Options dialog in Visual Studio at design time.

xtrareports-menu-designer-options-dialog

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;
            // ...
        }
    }
    
  • 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);
        }
    }
    
  • 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;
            //... 
        }
    }
    

See the Data Binding Modes document to learn about available binding modes.

See Also