[]
Gets or sets a value indicating whether the DataSource icon is visible on the detail section bar. This icon allows users to modify the report's data source settings.
public bool ShowDataSourceIcon { get; set; }
Type | Description |
---|---|
bool |
|
Displaying the DataSource icon provides a convenient way for users to access and modify the data source settings directly from the report designer interface. This property can be used to control the visibility of the DataSource icon based on the specific requirements or permissions of the application.
When set to true
, the DataSource icon appears on the detail section bar, offering users a quick way to access data source configuration options.
Setting this property to false
hides the icon, which may be useful in scenarios where data source settings are predetermined or should not be modified
by the user.
This example demonstrates how to show or hide the data source icon in the section tab for section reports.
public partial class Form1 : Form
{
Designer designer;
public Form1()
{
InitializeComponent();
designer = new Designer() { Dock = DockStyle.Fill };
designer.NewReport(DesignerReportType.Section);
designer.ShowDataSourceIcon = false;// Set to true to show the data source icon.
}
}