# FarPoint.Web.Spread.Model.DefaultSheetDataModel.-ctor

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*">DefaultSheetDataModel Constructor
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor">DefaultSheetDataModel()</h4>
<div class="markdown level1 summary"><p>Creates a default data model with zero rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel()</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New()</code></pre>
</div>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_Int32_System_Int32_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.Int32,System.Int32)">DefaultSheetDataModel(int, int)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified number of rows and columns.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(int rowCount, int columnCount)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(rowCount As Integer, columnCount As Integer)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">rowCount</span></td>
      <td><p>Number of rows in the model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.int32">int</a></td>
      <td><span class="parametername">columnCount</span></td>
      <td><p>Number of columns in the model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_Runtime_Serialization_SerializationInfo_System_Runtime_Serialization_StreamingContext_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)">DefaultSheetDataModel(SerializationInfo, StreamingContext)</h4>
<div class="markdown level1 summary"><p>Creates a new DefaultSheetDataModel from the SerializationInfo object.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">protected DefaultSheetDataModel(SerializationInfo info, StreamingContext context)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Protected Sub New(info As SerializationInfo, context As StreamingContext)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.serializationinfo">SerializationInfo</a></td>
      <td><span class="parametername">info</span></td>
      <td><p>SerializationInfo</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.runtime.serialization.streamingcontext">StreamingContext</a></td>
      <td><span class="parametername">context</span></td>
      <td><p>StreamingContext</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_Data_DataTable_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.Data.DataTable)">DefaultSheetDataModel(DataTable)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified data table.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(DataTable dataSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dataSource As DataTable)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.datatable">DataTable</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>Data source to be used for this model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_FarPoint_Web_Spread_ICalcResolver_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(FarPoint.Web.Spread.ICalcResolver)">DefaultSheetDataModel(ICalcResolver)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified resolver.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(ICalcResolver resolver)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(resolver As ICalcResolver)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="FarPoint.Web.Spread.ICalcResolver.html">ICalcResolver</a></td>
      <td><span class="parametername">resolver</span></td>
      <td></td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_Data_DataSet_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.Data.DataSet)">DefaultSheetDataModel(DataSet)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified data set.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(DataSet dataSource)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dataSource As DataSet)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.dataset">DataSet</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>Data source to be used for this model</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_Data_DataSet_System_String_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.Data.DataSet,System.String)">DefaultSheetDataModel(DataSet, string)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified data set.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(DataSet dataSource, string dataMember)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dataSource As DataSet, dataMember As String)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.data.dataset">DataSet</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>Data source to be used for this model</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.string">string</a></td>
      <td><span class="parametername">dataMember</span></td>
      <td><p>Data table name</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_ComponentModel_IListSource_System_Type_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.ComponentModel.IListSource,System.Type)">DefaultSheetDataModel(IListSource, Type)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified data set (IListSource object).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(IListSource dataSource, Type itemType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dataSource As IListSource, itemType As Type)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.ilistsource">IListSource</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>Data source to be used</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">itemType</span></td>
      <td><p>Element type in the data source</p>
</td>
    </tr>
  </tbody>
</table>


<a id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor*"></a>
<h4 id="FarPoint_Web_Spread_Model_DefaultSheetDataModel__ctor_System_Collections_IList_System_Type_" data-uid="FarPoint.Web.Spread.Model.DefaultSheetDataModel.#ctor(System.Collections.IList,System.Type)">DefaultSheetDataModel(IList, Type)</h4>
<div class="markdown level1 summary"><p>Creates a default data model with the specified data set (IList object).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public DefaultSheetDataModel(IList dataSource, Type itemType)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub New(dataSource As IList, itemType As Type)</code></pre>
</div>
<h5 class="parameters">Parameters</h5>
<table class="table table-bordered table-condensed">
  <thead>
    <tr>
      <th>Type</th>
      <th>Name</th>
      <th>Description</th>
    </tr>
  </thead>
  <tbody>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.collections.ilist">IList</a></td>
      <td><span class="parametername">dataSource</span></td>
      <td><p>Data source to be used</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.type">Type</a></td>
      <td><span class="parametername">itemType</span></td>
      <td><p>Element type in the data source</p>
</td>
    </tr>
  </tbody>
</table>
</div>
