# GrapeCity.ActiveReports.SectionReport.UserData

## Content

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



<h1 id="GrapeCity_ActiveReports_SectionReport_UserData_" data-uid="GrapeCity.ActiveReports.SectionReport.UserData*">UserData Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="GrapeCity_ActiveReports_SectionReport_UserData_" data-uid="GrapeCity.ActiveReports.SectionReport.UserData*"></a>
<h4 id="GrapeCity_ActiveReports_SectionReport_UserData" data-uid="GrapeCity.ActiveReports.SectionReport.UserData">UserData</h4>
<div class="markdown level1 summary"><p>Gets or sets a value representing the custom report string data.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">[TypeConverter(typeof(StringConverter))]
public object UserData { 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.object">object</a></td>
      <td><p>A <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a> value that refers to user string data.</p>
</td>
    </tr>
  </tbody>
</table>
<h5 id="GrapeCity_ActiveReports_SectionReport_UserData_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>This property can be used to store user string data.</p>
</div>
<h5 id="GrapeCity_ActiveReports_SectionReport_UserData_examples">Examples</h5>
<pre><code class="lang-csharp">var sectionReport = new GrapeCity.ActiveReports.SectionReport();
sectionReport.Document.Printer.PrinterName = String.Empty;
sectionReport.CompatibilityMode = GrapeCity.ActiveReports.Document.CompatibilityModes.CrossPlatform;
var ctl = new GrapeCity.ActiveReports.SectionReportModel.TextBox{Name = "text1"};
sectionReport.Sections.Add(new GrapeCity.ActiveReports.SectionReportModel.Detail{Name = "Details"});
sectionReport.Sections[0].Controls.Add(ctl);
sectionReport.ScriptLanguage = "C#";
sectionReport.Script = @"public void Detail_Format(){text1.Text = (string)rpt.UserData;}";
sectionReport.UserData = "Hello World!";</code></pre>

</div>
