# FarPoint.Web.Spread.Model.IDataSourceSupport

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Web_Spread_Model_IDataSourceSupport" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport" class="text-break">IDataSourceSupport Interface
</h1>
  <div class="markdown level0 summary"><p>Interface that supports data binding and data relations in the data model.</p>
</div>
  <div class="markdown level0 conceptual"></div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Web.Spread.Model.html">FarPoint.Web.Spread.Model</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Web.Spread.dll</h6>
  <h5 id="FarPoint_Web_Spread_Model_IDataSourceSupport_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public interface IDataSourceSupport</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Interface IDataSourceSupport</code></pre>
  </div>
  <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="FarPoint_Web_Spread_Model_IDataSourceSupport_AutoGenerateColumns" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.AutoGenerateColumns">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.AutoGenerateColumns.html#FarPoint_Web_Spread_Model_IDataSourceSupport_AutoGenerateColumns">AutoGenerateColumns</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether to generate the columns automatically based on the data source.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_DataKeyField" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.DataKeyField">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.DataKeyField.html#FarPoint_Web_Spread_Model_IDataSourceSupport_DataKeyField">DataKeyField</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data key field (row identifier).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_DataMember" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.DataMember">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.DataMember.html#FarPoint_Web_Spread_Model_IDataSourceSupport_DataMember">DataMember</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data member (table name).</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_DataSource" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.DataSource">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.DataSource.html#FarPoint_Web_Spread_Model_IDataSourceSupport_DataSource">DataSource</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the data source.</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="FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataColumnFromModelColumn_System_Int32_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataColumnFromModelColumn(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataColumnFromModelColumn.html#FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataColumnFromModelColumn_System_Int32_">GetDataColumnFromModelColumn(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the model column index to the data source column index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataColumnName_System_Int32_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataColumnName(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataColumnName.html#FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataColumnName_System_Int32_">GetDataColumnName(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the column name at the specified position.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataRowFromModelRow_System_Int32_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataRowFromModelRow(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataRowFromModelRow.html#FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataRowFromModelRow_System_Int32_">GetDataRowFromModelRow(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the model row index to the data source row index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataView_System_Boolean_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataView(System.Boolean)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.GetDataView.html#FarPoint_Web_Spread_Model_IDataSourceSupport_GetDataView_System_Boolean_">GetDataView(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the DataView object.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_GetModelColumnFromDataColumn_System_Int32_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.GetModelColumnFromDataColumn(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.GetModelColumnFromDataColumn.html#FarPoint_Web_Spread_Model_IDataSourceSupport_GetModelColumnFromDataColumn_System_Int32_">GetModelColumnFromDataColumn(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the data source column index to the model column index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_GetModelRowFromDataRow_System_Int32_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.GetModelRowFromDataRow(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.GetModelRowFromDataRow.html#FarPoint_Web_Spread_Model_IDataSourceSupport_GetModelRowFromDataRow_System_Int32_">GetModelRowFromDataRow(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Converts the data source row index to the model row index.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_IsColumnBound_System_Int32_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.IsColumnBound(System.Int32)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.IsColumnBound.html#FarPoint_Web_Spread_Model_IDataSourceSupport_IsColumnBound_System_Int32_">IsColumnBound(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether the column is bound to a data source column.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Web_Spread_Model_IDataSourceSupport_SetModelDataColumn_System_Int32_System_String_" data-uid="FarPoint.Web.Spread.Model.IDataSourceSupport.SetModelDataColumn(System.Int32,System.String)">
          <a class="xref" href="FarPoint.Web.Spread.Model.IDataSourceSupport.SetModelDataColumn.html#FarPoint_Web_Spread_Model_IDataSourceSupport_SetModelDataColumn_System_Int32_System_String_">SetModelDataColumn(int, string)</a>
        </td>
        <td class="markdown level1 summary"><p>Binds the model column with the data source column.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
