Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all articles
Browse latest Browse all 7205

How to refresh the Field List in the End-User Designer

$
0
0

This example demonstrates how to programmatically update the Field List in the End-User Designer. This may be required when a data source is created and bound to a report at runtime, and isn't present in the designer host of the End-User Designer. For instance, this situation occurs when a data source is represented by a list (e.g. ArrayList), as demonstrated in the sample below.

To accomplish this task, we've introduced the FieldListDockPanel.UpdateDataSource method, which should be called after assigning a data source to a report.

Example Comments

Added By: BGood2 at: 3/27/2014 3:59:31 PM    

Tried this sample with v13.2.8 in Visual Studio 2012 on Windows 7 32 bit VM. Menu item "Bind to a DataSource" is disabled after the app starts.

If I bypass the code in Form1_Load and don't call xrDesignPanel1.ExecCommand(ReportCommand.NewReport);, the menu item is enabled, but the code in BindReportToData() fails because xrDesignPanel1.Report is null.

Suggestions?


Viewing all articles
Browse latest Browse all 7205

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>