# C1.WPF.FlexGrid.GridPanel

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_WPF_FlexGrid_GridPanel" data-uid="C1.WPF.FlexGrid.GridPanel" class="text-break">GridPanel Class
</h1>
  <div class="markdown level0 summary"><p>Represents a logical part of the grid, such as the column headers, row headers,
and scrollable data part.</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="https://learn.microsoft.com/dotnet/api/system.windows.threading.dispatcherobject">DispatcherObject</a></div>
    <div class="level2"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.dependencyobject">DependencyObject</a></div>
    <div class="level3"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.visual">Visual</a></div>
    <div class="level4"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.uielement">UIElement</a></div>
    <div class="level5"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a></div>
    <div class="level6"><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.controls.panel">Panel</a></div>
    <div class="level7"><span class="xref">GridPanel</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.media.animation.ianimatable">IAnimatable</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iframeworkinputelement">IFrameworkInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.iinputelement">IInputElement</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.componentmodel.isupportinitialize">ISupportInitialize</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iqueryambient">IQueryAmbient</a></div>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.markup.iaddchild">IAddChild</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.WPF.FlexGrid.html">C1.WPF.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.WPF.FlexGrid.4.6.2.dll</h6>
  <h5 id="C1_WPF_FlexGrid_GridPanel_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">public class GridPanel : Panel, IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">Public Class GridPanel
    Inherits Panel
    Implements IAnimatable, IFrameworkInputElement, IInputElement, ISupportInitialize, IQueryAmbient, IAddChild</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="C1_WPF_FlexGrid_GridPanel_CellType" data-uid="C1.WPF.FlexGrid.GridPanel.CellType">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.CellType.html#C1_WPF_FlexGrid_GridPanel_CellType">CellType</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the type of cell that this panel contains.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Columns" data-uid="C1.WPF.FlexGrid.GridPanel.Columns">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Columns.html#C1_WPF_FlexGrid_GridPanel_Columns">Columns</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of columns in this <a class="xref" href="C1.WPF.FlexGrid.GridPanel.html">GridPanel</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Grid" data-uid="C1.WPF.FlexGrid.GridPanel.Grid">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Grid.html#C1_WPF_FlexGrid_GridPanel_Grid">Grid</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.WPF.FlexGrid.C1FlexGrid.html">C1FlexGrid</a> that owns this <a class="xref" href="C1.WPF.FlexGrid.GridPanel.html">GridPanel</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Item_System_Int32_C1_WPF_FlexGrid_Column_" data-uid="C1.WPF.FlexGrid.GridPanel.Item(System.Int32,C1.WPF.FlexGrid.Column)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Item.html#C1_WPF_FlexGrid_GridPanel_Item_System_Int32_C1_WPF_FlexGrid_Column_">this[int, Column]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value of a specific cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Item_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.GridPanel.Item(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Item.html#C1_WPF_FlexGrid_GridPanel_Item_System_Int32_System_Int32_">this[int, int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value of a specific cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Item_System_Int32_System_String_" data-uid="C1.WPF.FlexGrid.GridPanel.Item(System.Int32,System.String)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Item.html#C1_WPF_FlexGrid_GridPanel_Item_System_Int32_System_String_">this[int, string]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the value of a specific cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Rows" data-uid="C1.WPF.FlexGrid.GridPanel.Rows">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Rows.html#C1_WPF_FlexGrid_GridPanel_Rows">Rows</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the collection of rows in this <a class="xref" href="C1.WPF.FlexGrid.GridPanel.html">GridPanel</a>.</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="C1_WPF_FlexGrid_GridPanel_ArrangeOverride_System_Windows_Size_" data-uid="C1.WPF.FlexGrid.GridPanel.ArrangeOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.ArrangeOverride.html#C1_WPF_FlexGrid_GridPanel_ArrangeOverride_System_Windows_Size_">ArrangeOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides the behavior for the <b>arrange</b> part of the control layout.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_AutoSizeColumn_System_Int32_System_Double_System_Boolean_" data-uid="C1.WPF.FlexGrid.GridPanel.AutoSizeColumn(System.Int32,System.Double,System.Boolean)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.AutoSizeColumn.html#C1_WPF_FlexGrid_GridPanel_AutoSizeColumn_System_Int32_System_Double_System_Boolean_">AutoSizeColumn(int, double, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Resizes a column to fit its visible contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_AutoSizeRow_System_Int32_System_Double_System_Boolean_" data-uid="C1.WPF.FlexGrid.GridPanel.AutoSizeRow(System.Int32,System.Double,System.Boolean)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.AutoSizeRow.html#C1_WPF_FlexGrid_GridPanel_AutoSizeRow_System_Int32_System_Double_System_Boolean_">AutoSizeRow(int, double, bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Resizes a row to fit its visible contents.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_GetCellElement_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.GridPanel.GetCellElement(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.GetCellElement.html#C1_WPF_FlexGrid_GridPanel_GetCellElement_C1_WPF_FlexGrid_CellRange_">GetCellElement(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.frameworkelement">FrameworkElement</a> used to represent a cell on the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_GetCellRect_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.GridPanel.GetCellRect(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.GetCellRect.html#C1_WPF_FlexGrid_GridPanel_GetCellRect_C1_WPF_FlexGrid_CellRange_">GetCellRect(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a rectangle that represents the position of a <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a> on
the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_GetCellRect_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.GridPanel.GetCellRect(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.GetCellRect.html#C1_WPF_FlexGrid_GridPanel_GetCellRect_System_Int32_System_Int32_">GetCellRect(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a rectangle that represents the position of a cell on the panel.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_GetDataFormatted_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.GridPanel.GetDataFormatted(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.GetDataFormatted.html#C1_WPF_FlexGrid_GridPanel_GetDataFormatted_System_Int32_System_Int32_">GetDataFormatted(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the formatted content of a specific cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_GetDataRaw_System_Int32_System_Int32_" data-uid="C1.WPF.FlexGrid.GridPanel.GetDataRaw(System.Int32,System.Int32)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.GetDataRaw.html#C1_WPF_FlexGrid_GridPanel_GetDataRaw_System_Int32_System_Int32_">GetDataRaw(int, int)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the raw content of a specific cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_HitTest_System_Windows_RoutedEventArgs_" data-uid="C1.WPF.FlexGrid.GridPanel.HitTest(System.Windows.RoutedEventArgs)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.HitTest.html#C1_WPF_FlexGrid_GridPanel_HitTest_System_Windows_RoutedEventArgs_">HitTest(RoutedEventArgs)</a>
        </td>
        <td class="markdown level1 summary"><p>Gets a <a class="xref" href="C1.WPF.FlexGrid.HitTestInfo.html">HitTestInfo</a> object that contains information about this
<a class="xref" href="C1.WPF.FlexGrid.GridPanel.html">GridPanel</a> at a given location.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Invalidate" data-uid="C1.WPF.FlexGrid.GridPanel.Invalidate">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Invalidate.html#C1_WPF_FlexGrid_GridPanel_Invalidate">Invalidate()</a>
        </td>
        <td class="markdown level1 summary"><p>Forces the grid panel to re-create all visible elements.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_Invalidate_C1_WPF_FlexGrid_CellRange_" data-uid="C1.WPF.FlexGrid.GridPanel.Invalidate(C1.WPF.FlexGrid.CellRange)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.Invalidate.html#C1_WPF_FlexGrid_GridPanel_Invalidate_C1_WPF_FlexGrid_CellRange_">Invalidate(CellRange)</a>
        </td>
        <td class="markdown level1 summary"><p>Forces the grid panel to re-create the elements in a given <a class="xref" href="C1.WPF.FlexGrid.CellRange.html">CellRange</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_MeasureOverride_System_Windows_Size_" data-uid="C1.WPF.FlexGrid.GridPanel.MeasureOverride(System.Windows.Size)">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.MeasureOverride.html#C1_WPF_FlexGrid_GridPanel_MeasureOverride_System_Windows_Size_">MeasureOverride(Size)</a>
        </td>
        <td class="markdown level1 summary"><p>Provides the behavior for the <b>measure</b> part of the control layout.</p>
</td>
      </tr>
      <tr>
        <td id="C1_WPF_FlexGrid_GridPanel_OnCreateAutomationPeer" data-uid="C1.WPF.FlexGrid.GridPanel.OnCreateAutomationPeer">
          <a class="xref" href="C1.WPF.FlexGrid.GridPanel.OnCreateAutomationPeer.html#C1_WPF_FlexGrid_GridPanel_OnCreateAutomationPeer">OnCreateAutomationPeer()</a>
        </td>
        <td class="markdown level1 summary"><p>Gets an AutomationPeer object used for testing the control.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
