# C1.Win.FlexGrid.C1FlexGridBase.ReadXml

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*">ReadXml Method
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_String_C1_Win_FlexGrid_XmlOptions_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.String,C1.Win.FlexGrid.XmlOptions)">ReadXml(string, XmlOptions)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(string fileName, XmlOptions options = XmlOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(fileName As String, Optional options As XmlOptions = XmlOptions.All)</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.string">string</a></td>
      <td><span class="parametername">fileName</span></td>
      <td><p>Name of the file to load, including the path.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.XmlOptions.html">XmlOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options that allows to choose which elements of FlexGrid should be loaded</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_IO_TextReader_C1_Win_FlexGrid_XmlOptions_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.IO.TextReader,C1.Win.FlexGrid.XmlOptions)">ReadXml(TextReader, XmlOptions)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(TextReader tr, XmlOptions options = XmlOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(tr As TextReader, Optional options As XmlOptions = XmlOptions.All)</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.io.textreader">TextReader</a></td>
      <td><span class="parametername">tr</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.textreader">TextReader</a> object to use for loading the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.XmlOptions.html">XmlOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options that allows to choose which elements of FlexGrid should be loaded</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_IO_Stream_C1_Win_FlexGrid_XmlOptions_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.IO.Stream,C1.Win.FlexGrid.XmlOptions)">ReadXml(Stream, XmlOptions)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(Stream stream, XmlOptions options = XmlOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(stream As Stream, Optional options As XmlOptions = XmlOptions.All)</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.io.stream">Stream</a></td>
      <td><span class="parametername">stream</span></td>
      <td><p><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.io.stream">Stream</a> object to use for loading the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.XmlOptions.html">XmlOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options that allows to choose which elements of FlexGrid should be loaded</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_Xml_XmlReader_C1_Win_FlexGrid_XmlOptions_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.Xml.XmlReader,C1.Win.FlexGrid.XmlOptions)">ReadXml(XmlReader, XmlOptions)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(XmlReader xr, XmlOptions options = XmlOptions.All)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(xr As XmlReader, Optional options As XmlOptions = XmlOptions.All)</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><span class="xref">XmlReader</span></td>
      <td><span class="parametername">xr</span></td>
      <td><p><span class="xref">System.Xml.XmlReader</span> object to use for loading the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.XmlOptions.html">XmlOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options that allows to choose which elements of FlexGrid should be loaded</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_Xml_XmlDocument_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.Xml.XmlDocument)">ReadXml(XmlDocument)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void ReadXml(XmlDocument doc)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub ReadXml(doc As XmlDocument)</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><span class="xref">XmlDocument</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p><span class="xref">System.Xml.XmlDocument</span> object to use for loading the grid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_Xml_XmlDocument_C1_Win_FlexGrid_XmlOptions_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.Xml.XmlDocument,C1.Win.FlexGrid.XmlOptions)">ReadXml(XmlDocument, XmlOptions)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(XmlDocument doc, XmlOptions options)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(doc As XmlDocument, options As XmlOptions)</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><span class="xref">XmlDocument</span></td>
      <td><span class="parametername">doc</span></td>
      <td><p><span class="xref">System.Xml.XmlDocument</span> object to use for loading the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.XmlOptions.html">XmlOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options that allows to choose which elements of FlexGrid should be loaded</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_Xml_XmlNode_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.Xml.XmlNode)">ReadXml(XmlNode)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public virtual void ReadXml(XmlNode node)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Overridable Sub ReadXml(node As XmlNode)</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><span class="xref">XmlNode</span></td>
      <td><span class="parametername">node</span></td>
      <td><p><span class="xref">System.Xml.XmlNode</span> object to use for loading the grid.</p>
</td>
    </tr>
  </tbody>
</table>


<a id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml*"></a>
<h4 id="C1_Win_FlexGrid_C1FlexGridBase_ReadXml_System_Xml_XmlNode_C1_Win_FlexGrid_XmlOptions_" data-uid="C1.Win.FlexGrid.C1FlexGridBase.ReadXml(System.Xml.XmlNode,C1.Win.FlexGrid.XmlOptions)">ReadXml(XmlNode, XmlOptions)</h4>
<div class="markdown level1 summary"><p>Loads the grid from an Xml document.</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public void ReadXml(XmlNode node, XmlOptions options)</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Sub ReadXml(node As XmlNode, options As XmlOptions)</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><span class="xref">XmlNode</span></td>
      <td><span class="parametername">node</span></td>
      <td><p><span class="xref">System.Xml.XmlNode</span> object to use for loading the grid.</p>
</td>
    </tr>
    <tr>
      <td><a class="xref" href="C1.Win.FlexGrid.XmlOptions.html">XmlOptions</a></td>
      <td><span class="parametername">options</span></td>
      <td><p>Options that allows to choose which elements of FlexGrid should be loaded</p>
</td>
    </tr>
  </tbody>
</table>
</div>
