# GrapeCity.ActiveReports.Data.OdbcDataSource

## Content

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



  <h1 id="GrapeCity_ActiveReports_Data_OdbcDataSource" data-uid="GrapeCity.ActiveReports.Data.OdbcDataSource" class="text-break">OdbcDataSource Class
</h1>
  <div class="markdown level0 summary"><p>ODBC data source - allows to connect through ODBC driver.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <div class="inheritance">
    <h5>Inheritance</h5>
    <div class="level0"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.object">object</a></div>
    <div class="level1"><a class="xref" href="GrapeCity.ActiveReports.Data.DbDataSource.html">DbDataSource</a></div>
    <div class="level2"><span class="xref">OdbcDataSource</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="GrapeCity.ActiveReports.Data.IDbConnectionProperties.html">IDbConnectionProperties</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="GrapeCity.ActiveReports.Data.html">GrapeCity.ActiveReports.Data</a></h6>
  <h6><strong>Assembly</strong>: MESCIUS.ActiveReports.dll</h6>
  <h5 id="GrapeCity_ActiveReports_Data_OdbcDataSource_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(&quot;GrapeCity.ActiveReports.Design.ArDesigner.TypeEditors.DataSourceTypeConverter, MESCIUS.ActiveReports.Design.Win, Version=20.1.2.0, Culture=neutral, PublicKeyToken=cc4967777c49a3ff&quot;)]
public sealed class OdbcDataSource : DbDataSource, IDbConnectionProperties</code></pre>
  </div>
  <h3 id="constructors">Constructors
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_OdbcDataSource__ctor" data-uid="GrapeCity.ActiveReports.Data.OdbcDataSource.#ctor">
          <a class="xref" href="GrapeCity.ActiveReports.Data.OdbcDataSource.-ctor.html#GrapeCity_ActiveReports_Data_OdbcDataSource__ctor">OdbcDataSource()</a>
        </td>
        <td class="markdown level1 summary"><p>Default ctor. By default, connection string and command text are empty strings,
and command timeout is DefaultTimeout</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_OdbcDataSource__ctor_System_String_System_String_System_Int32_" data-uid="GrapeCity.ActiveReports.Data.OdbcDataSource.#ctor(System.String,System.String,System.Int32)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.OdbcDataSource.-ctor.html#GrapeCity_ActiveReports_Data_OdbcDataSource__ctor_System_String_System_String_System_Int32_">OdbcDataSource(string, string, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="GrapeCity.ActiveReports.Data.OdbcDataSource.html">OdbcDataSource</a> class.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="properties">Properties
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_OdbcDataSource_ProviderName" data-uid="GrapeCity.ActiveReports.Data.OdbcDataSource.ProviderName">
          <a class="xref" href="GrapeCity.ActiveReports.Data.OdbcDataSource.ProviderName.html#GrapeCity_ActiveReports_Data_OdbcDataSource_ProviderName">ProviderName</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the name of the data provider.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="methods">Methods
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_OdbcDataSource_OnConnectionStringChanging_System_String_" data-uid="GrapeCity.ActiveReports.Data.OdbcDataSource.OnConnectionStringChanging(System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.OdbcDataSource.OnConnectionStringChanging.html#GrapeCity_ActiveReports_Data_OdbcDataSource_OnConnectionStringChanging_System_String_">OnConnectionStringChanging(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Called when the connection string is about to change; validates and normalizes the new value.</p>
</td>
      </tr>
      <tr>
        <td id="GrapeCity_ActiveReports_Data_OdbcDataSource_SetCredentials_System_String_System_String_" data-uid="GrapeCity.ActiveReports.Data.OdbcDataSource.SetCredentials(System.String,System.String)">
          <a class="xref" href="GrapeCity.ActiveReports.Data.OdbcDataSource.SetCredentials.html#GrapeCity_ActiveReports_Data_OdbcDataSource_SetCredentials_System_String_System_String_">SetCredentials(string, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Sets the credentials for the connection string.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="extensionmethods">Extension Methods</h3>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ApplyDefaults.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ApplyDefaults__1___0_">ObjectExtensions.ApplyDefaults&lt;TObject&gt;(TObject)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.SetValue.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_SetValue__1___0_System_ComponentModel_PropertyDescriptor_System_String_">ObjectExtensions.SetValue&lt;TObject&gt;(TObject, PropertyDescriptor, string)</a>
  </div>
  <div>
      <a class="xref" href="GrapeCity.ActiveReports.ReportsCore.Tools.ObjectExtensions.ToNameValueCollection.html#GrapeCity_ActiveReports_ReportsCore_Tools_ObjectExtensions_ToNameValueCollection_System_Object_">ObjectExtensions.ToNameValueCollection(object)</a>
  </div>

</div>
