# GrapeCity.ActiveReports.Design.Designer.ShowDataSourceIcon

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="GrapeCity_ActiveReports_Design_Designer_ShowDataSourceIcon_" data-uid="GrapeCity.ActiveReports.Design.Designer.ShowDataSourceIcon*">ShowDataSourceIcon Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_Design_Designer_ShowDataSourceIcon_" data-uid="GrapeCity.ActiveReports.Design.Designer.ShowDataSourceIcon*"></a>
<h4 id="GrapeCity_ActiveReports_Design_Designer_ShowDataSourceIcon" data-uid="GrapeCity.ActiveReports.Design.Designer.ShowDataSourceIcon">ShowDataSourceIcon</h4>
<div class="markdown level1 summary"><p>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.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public bool ShowDataSourceIcon { get; set; }</code></pre>
</div>
<h5 class="propertyValue">Property Value</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.boolean">bool</a></td>
      <td><p><code>true</code> if the DataSource icon is visible; otherwise, <code>false</code>. The default is determined by the initial configuration of the designer settings.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_Design_Designer_ShowDataSourceIcon_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>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.</p>
<p>
When set to <code>true</code>, the DataSource icon appears on the detail section bar, offering users a quick way to access data source configuration options. 
Setting this property to <code>false</code> hides the icon, which may be useful in scenarios where data source settings are predetermined or should not be modified 
by the user.
</p>
</div>
<h5 id="GrapeCity_ActiveReports_Design_Designer_ShowDataSourceIcon_examples">Examples</h5>
<p>This example demonstrates how to show or hide the data source icon in the section tab for section reports.</p>
<pre><code class="lang-csharp">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.
	}
}</code></pre>

</div>
