# FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper" class="text-break">DefaultSpreadDataViewMapper Class
</h1>
  <div class="markdown level0 summary"><p>Represents the default coordinate mapper from Spread data view to its underlying sheet.</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"><span class="xref">DefaultSpreadDataViewMapper</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="FarPoint.Win.Spread.Data.ISpreadDataViewMapper.html">ISpreadDataViewMapper</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.inotifypropertychanged">INotifyPropertyChanged</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="FarPoint.Win.Spread.Data.html">FarPoint.Win.Spread.Data</a></h6>
  <h6><strong>Assembly</strong>: FarPoint.Win.Spread.dll</h6>
  <h5 id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class DefaultSpreadDataViewMapper : ISpreadDataViewMapper, INotifyPropertyChanged</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class DefaultSpreadDataViewMapper
    Implements ISpreadDataViewMapper, INotifyPropertyChanged</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="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper__ctor" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.#ctor">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.-ctor.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper__ctor">DefaultSpreadDataViewMapper()</a>
        </td>
        <td class="markdown level1 summary"><p>Initializes a new instance of the <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.html">DefaultSpreadDataViewMapper</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="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_CellRange" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.CellRange">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.CellRange.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_CellRange">CellRange</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the model data source range.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_DataViewColumnCount" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.DataViewColumnCount">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.DataViewColumnCount.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_DataViewColumnCount">DataViewColumnCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of columns in the data view.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_DataViewRowCount" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.DataViewRowCount">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.DataViewRowCount.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_DataViewRowCount">DataViewRowCount</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the number of rows in the data view.</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_Win_Spread_Data_DefaultSpreadDataViewMapper_GetDataViewColumnFromModelColumn_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetDataViewColumnFromModelColumn(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetDataViewColumnFromModelColumn.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetDataViewColumnFromModelColumn_System_Int32_">GetDataViewColumnFromModelColumn(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the data view column from model column.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetDataViewRowFromModelRow_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetDataViewRowFromModelRow(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetDataViewRowFromModelRow.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetDataViewRowFromModelRow_System_Int32_">GetDataViewRowFromModelRow(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the data view row from model row.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetDataViewRowFromModelRowWhenAddNew_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetDataViewRowFromModelRowWhenAddNew(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetDataViewRowFromModelRowWhenAddNew.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetDataViewRowFromModelRowWhenAddNew_System_Int32_">GetDataViewRowFromModelRowWhenAddNew(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the data view row from the model row when a new row is added.
This method is used only when a new row is added to a sheet.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetModelColumnFromDataViewColumn_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetModelColumnFromDataViewColumn(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetModelColumnFromDataViewColumn.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetModelColumnFromDataViewColumn_System_Int32_">GetModelColumnFromDataViewColumn(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the model column from the data view column.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetModelRowFromDataViewRow_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetModelRowFromDataViewRow(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.GetModelRowFromDataViewRow.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_GetModelRowFromDataViewRow_System_Int32_">GetModelRowFromDataViewRow(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the model row from data view row.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_IsValid_FarPoint_Win_Spread_SheetView_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.IsValid(FarPoint.Win.Spread.SheetView)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.IsValid.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_IsValid_FarPoint_Win_Spread_SheetView_">IsValid(SheetView)</a>
        </td>
        <td class="markdown level1 summary"><p>Determines whether this cell range is valid in the specified sheet.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataModelRowInserted_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataModelRowInserted(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataModelRowInserted.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataModelRowInserted_System_Int32_">OnDataModelRowInserted(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data model row is inserted.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataModelRowRemoved_System_Int32_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataModelRowRemoved(System.Int32)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataModelRowRemoved.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataModelRowRemoved_System_Int32_">OnDataModelRowRemoved(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data model row is removed.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataReset_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataReset(System.Int32,System.Int32,System.ComponentModel.PropertyDescriptor)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataReset.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataReset_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_">OnDataReset(int, int, PropertyDescriptor)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data row is reset.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowAdded_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowAdded(System.Int32,System.Int32,System.ComponentModel.PropertyDescriptor)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowAdded.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowAdded_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_">OnDataRowAdded(int, int, PropertyDescriptor)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data row is added.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowChanged_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowChanged(System.Int32,System.Int32,System.ComponentModel.PropertyDescriptor)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowChanged.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowChanged_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_">OnDataRowChanged(int, int, PropertyDescriptor)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data row is changed.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowDeleted_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowDeleted(System.Int32,System.Int32,System.ComponentModel.PropertyDescriptor)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowDeleted.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowDeleted_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_">OnDataRowDeleted(int, int, PropertyDescriptor)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data row is deleted.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowMoved_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowMoved(System.Int32,System.Int32,System.ComponentModel.PropertyDescriptor)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnDataRowMoved.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnDataRowMoved_System_Int32_System_Int32_System_ComponentModel_PropertyDescriptor_">OnDataRowMoved(int, int, PropertyDescriptor)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a data row is moved.</p>
</td>
      </tr>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnPropertyChanged_System_String_" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnPropertyChanged(System.String)">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.OnPropertyChanged.html#FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_OnPropertyChanged_System_String_">OnPropertyChanged(string)</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a property is changed.</p>
</td>
      </tr>
    </tbody>
  </table>
  <h3 id="events">Events
</h3>
  <table class="table table-bordered table-condensed">
    <thead>
      <tr>
        <th>Name</th>
        <th>Description</th>
      </tr>
    </thead>
    <tbody>
      <tr>
        <td id="FarPoint_Win_Spread_Data_DefaultSpreadDataViewMapper_PropertyChanged" data-uid="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.PropertyChanged">
          <a class="xref" href="FarPoint.Win.Spread.Data.DefaultSpreadDataViewMapper.PropertyChanged.html">PropertyChanged</a>
        </td>
        <td class="markdown level1 summary"><p>Occurs when a property changes.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
