# C1.Win.FlexGrid.Column

## Content

<div class="doc-site-dotnet-api-container">



  <h1 id="C1_Win_FlexGrid_Column" data-uid="C1.Win.FlexGrid.Column" class="text-break">Column Class
</h1>
  <div class="markdown level0 summary"><p>Class that represents a grid column.</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="C1.Win.FlexGrid.RowCol.html">RowCol</a></div>
    <div class="level2"><span class="xref">Column</span></div>
  </div>
  <div class="implements">
    <h5>Implements</h5>
    <div><a class="xref" href="https://learn.microsoft.com/dotnet/api/system.idisposable">IDisposable</a></div>
  </div>
  <h6><strong>Namespace</strong>: <a class="xref" href="C1.Win.FlexGrid.html">C1.Win.FlexGrid</a></h6>
  <h6><strong>Assembly</strong>: C1.Win.FlexGrid.10.dll</h6>
  <h5 id="C1_Win_FlexGrid_Column_syntax">Syntax</h5>
  <div class="codewrapper">
    <pre><code class="lang-csharp hljs">[TypeConverter(typeof(DisablePropConverter))]
public class Column : RowCol, IDisposable</code></pre>
  </div>
  <div class="codewrapper">
    <pre><code class="lang-vbnet hljs">&lt;TypeConverter(GetType(DisablePropConverter))&gt;
Public Class Column
    Inherits RowCol
    Implements IDisposable</code></pre>
  </div>
  <h5 id="C1_Win_FlexGrid_Column_remarks"><strong>Remarks</strong></h5>
  <div class="markdown level0 remarks"><p>This class does not have a public constructor. You can add and remove
columns using methods in the grid's <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Cols.html#C1_Win_FlexGrid_C1FlexGridBase_Cols">Cols</a>
property, which exposes the column collection.</p>
</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_Win_FlexGrid_Column_ActiveFilter" data-uid="C1.Win.FlexGrid.Column.ActiveFilter">
          <a class="xref" href="C1.Win.FlexGrid.Column.ActiveFilter.html#C1_Win_FlexGrid_Column_ActiveFilter">ActiveFilter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the <a class="xref" href="C1.Win.FlexGrid.IC1ColumnFilter.html">IC1ColumnFilter</a> that is currently filtering this column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Aggregate" data-uid="C1.Win.FlexGrid.Column.Aggregate">
          <a class="xref" href="C1.Win.FlexGrid.Column.Aggregate.html#C1_Win_FlexGrid_Column_Aggregate">Aggregate</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the aggregate to display on group rows for this column..</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_AllowExpressionEditing" data-uid="C1.Win.FlexGrid.Column.AllowExpressionEditing">
          <a class="xref" href="C1.Win.FlexGrid.Column.AllowExpressionEditing.html#C1_Win_FlexGrid_Column_AllowExpressionEditing">AllowExpressionEditing</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether the Expression property of this column can be edited by clicking
on the ExpressionEditor icon in the column header.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_AllowFiltering" data-uid="C1.Win.FlexGrid.Column.AllowFiltering">
          <a class="xref" href="C1.Win.FlexGrid.Column.AllowFiltering.html#C1_Win_FlexGrid_Column_AllowFiltering">AllowFiltering</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets this type of filter to use for this column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_AllowNull" data-uid="C1.Win.FlexGrid.Column.AllowNull">
          <a class="xref" href="C1.Win.FlexGrid.Column.AllowNull.html#C1_Win_FlexGrid_Column_AllowNull">AllowNull</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets that cells in the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> will accept null value or null will be replaced by default value in unbound mode.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_AllowSorting" data-uid="C1.Win.FlexGrid.Column.AllowSorting">
          <a class="xref" href="C1.Win.FlexGrid.Column.AllowSorting.html#C1_Win_FlexGrid_Column_AllowSorting">AllowSorting</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this column can be sorted by clicking on the column header.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Caption" data-uid="C1.Win.FlexGrid.Column.Caption">
          <a class="xref" href="C1.Win.FlexGrid.Column.Caption.html#C1_Win_FlexGrid_Column_Caption">Caption</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the text of the column's header cell.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_DataIndex" data-uid="C1.Win.FlexGrid.Column.DataIndex">
          <a class="xref" href="C1.Win.FlexGrid.Column.DataIndex.html#C1_Win_FlexGrid_Column_DataIndex">DataIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of the column in the data source object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_EditorValidation" data-uid="C1.Win.FlexGrid.Column.EditorValidation">
          <a class="xref" href="C1.Win.FlexGrid.Column.EditorValidation.html#C1_Win_FlexGrid_Column_EditorValidation">EditorValidation</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies a collection of validation rules for an editor value.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Expression" data-uid="C1.Win.FlexGrid.Column.Expression">
          <a class="xref" href="C1.Win.FlexGrid.Column.Expression.html#C1_Win_FlexGrid_Column_Expression">Expression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the expression for column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Filter" data-uid="C1.Win.FlexGrid.Column.Filter">
          <a class="xref" href="C1.Win.FlexGrid.Column.Filter.html#C1_Win_FlexGrid_Column_Filter">Filter</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the <a class="xref" href="C1.Win.FlexGrid.IC1ColumnFilter.html">IC1ColumnFilter</a> responsible for filtering this column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_GroupExpression" data-uid="C1.Win.FlexGrid.Column.GroupExpression">
          <a class="xref" href="C1.Win.FlexGrid.Column.GroupExpression.html#C1_Win_FlexGrid_Column_GroupExpression">GroupExpression</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the group expression for column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Index" data-uid="C1.Win.FlexGrid.Column.Index">
          <a class="xref" href="C1.Win.FlexGrid.Column.Index.html#C1_Win_FlexGrid_Column_Index">Index</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of this column in the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Item_System_Int32_" data-uid="C1.Win.FlexGrid.Column.Item(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.Column.Item.html#C1_Win_FlexGrid_Column_Item_System_Int32_">this[int]</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the cell value specified by the row index in this column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Left" data-uid="C1.Win.FlexGrid.Column.Left">
          <a class="xref" href="C1.Win.FlexGrid.Column.Left.html#C1_Win_FlexGrid_Column_Left">Left</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of the left of this column, in pixels, relative to the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_MaxLength" data-uid="C1.Win.FlexGrid.Column.MaxLength">
          <a class="xref" href="C1.Win.FlexGrid.Column.MaxLength.html#C1_Win_FlexGrid_Column_MaxLength">MaxLength</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum number of characters the user can type or paste into the <a class="xref" href="https://learn.microsoft.com/dotnet/api/system.windows.forms.textboxbase">TextBoxBase</a>-based editor.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_MaxWidth" data-uid="C1.Win.FlexGrid.Column.MaxWidth">
          <a class="xref" href="C1.Win.FlexGrid.Column.MaxWidth.html#C1_Win_FlexGrid_Column_MaxWidth">MaxWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the maximum width of the column to use when
star-sizing is enabled (<a class="xref" href="C1.Win.FlexGrid.Column.StarWidth.html#C1_Win_FlexGrid_Column_StarWidth">StarWidth</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_MinWidth" data-uid="C1.Win.FlexGrid.Column.MinWidth">
          <a class="xref" href="C1.Win.FlexGrid.Column.MinWidth.html#C1_Win_FlexGrid_Column_MinWidth">MinWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the minimum width of the column to use when
star-sizing is enabled (<a class="xref" href="C1.Win.FlexGrid.Column.StarWidth.html#C1_Win_FlexGrid_Column_StarWidth">StarWidth</a>).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Name" data-uid="C1.Win.FlexGrid.Column.Name">
          <a class="xref" href="C1.Win.FlexGrid.Column.Name.html#C1_Win_FlexGrid_Column_Name">Name</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the name of this column.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Right" data-uid="C1.Win.FlexGrid.Column.Right">
          <a class="xref" href="C1.Win.FlexGrid.Column.Right.html#C1_Win_FlexGrid_Column_Right">Right</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the position of the right of this column, in pixels, relative to the grid.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_SafeIndex" data-uid="C1.Win.FlexGrid.Column.SafeIndex">
          <a class="xref" href="C1.Win.FlexGrid.Column.SafeIndex.html#C1_Win_FlexGrid_Column_SafeIndex">SafeIndex</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the index of this column in the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> collection.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Selected" data-uid="C1.Win.FlexGrid.Column.Selected">
          <a class="xref" href="C1.Win.FlexGrid.Column.Selected.html#C1_Win_FlexGrid_Column_Selected">Selected</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets whether this column is selected.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_ShowButtons" data-uid="C1.Win.FlexGrid.Column.ShowButtons">
          <a class="xref" href="C1.Win.FlexGrid.Column.ShowButtons.html#C1_Win_FlexGrid_Column_ShowButtons">ShowButtons</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets when to display combo buttons in cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_ShowSparkline" data-uid="C1.Win.FlexGrid.Column.ShowSparkline">
          <a class="xref" href="C1.Win.FlexGrid.Column.ShowSparkline.html#C1_Win_FlexGrid_Column_ShowSparkline">ShowSparkline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets when to display sparkline in cells.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Sort" data-uid="C1.Win.FlexGrid.Column.Sort">
          <a class="xref" href="C1.Win.FlexGrid.Column.Sort.html#C1_Win_FlexGrid_Column_Sort">Sort</a>
        </td>
        <td class="markdown level1 summary"><p>Specifies how this column should be sorted when the <a class="xref" href="C1.Win.FlexGrid.C1FlexGridBase.Sort.html#C1_Win_FlexGrid_C1FlexGridBase_Sort_C1_Win_FlexGrid_SortFlags_System_Int32_">Sort(SortFlags, int)</a> method is called
with a <a class="xref" href="C1.Win.FlexGrid.SortFlags.html#C1_Win_FlexGrid_SortFlags_UseColSort">UseColSort</a> flag.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Sparkline" data-uid="C1.Win.FlexGrid.Column.Sparkline">
          <a class="xref" href="C1.Win.FlexGrid.Column.Sparkline.html#C1_Win_FlexGrid_Column_Sparkline">Sparkline</a>
        </td>
        <td class="markdown level1 summary"><p>Gets the sparkline object.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_StarWidth" data-uid="C1.Win.FlexGrid.Column.StarWidth">
          <a class="xref" href="C1.Win.FlexGrid.Column.StarWidth.html#C1_Win_FlexGrid_Column_StarWidth">StarWidth</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets a column's star-size, expressed in the format '{number}*'.</p>
<p>Star-sizing option performs a XAML-style dynamic sizing where column
widths are proportional to the number before the star. For example, if
a grid has three columns with widths &quot;100&quot;, &quot;<em>&quot;, and &quot;3</em>&quot;, the first column
will be 100 pixels wide, the second will take up 1/4th of the remaining
space, and the last will take up the remaining 3/4ths of the remaining space.</p>
<p>Star-sizing allows you to define columns that automatically stretch to fill
the width available. For example, set the width of the last column to &quot;*&quot;
and it will automatically extend to fill the entire grid width so there's
no empty space.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Width" data-uid="C1.Win.FlexGrid.Column.Width">
          <a class="xref" href="C1.Win.FlexGrid.Column.Width.html#C1_Win_FlexGrid_Column_Width">Width</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the width of this column, in pixels (the value -1 represents the default column width).</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_WidthDisplay" data-uid="C1.Win.FlexGrid.Column.WidthDisplay">
          <a class="xref" href="C1.Win.FlexGrid.Column.WidthDisplay.html#C1_Win_FlexGrid_Column_WidthDisplay">WidthDisplay</a>
        </td>
        <td class="markdown level1 summary"><p>Gets or sets the display width for this column, in pixels.</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_Win_FlexGrid_Column_Clear_C1_Win_FlexGrid_ClearFlags_" data-uid="C1.Win.FlexGrid.Column.Clear(C1.Win.FlexGrid.ClearFlags)">
          <a class="xref" href="C1.Win.FlexGrid.Column.Clear.html#C1_Win_FlexGrid_Column_Clear_C1_Win_FlexGrid_ClearFlags_">Clear(ClearFlags)</a>
        </td>
        <td class="markdown level1 summary"><p>Clears this <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a>.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Dispose" data-uid="C1.Win.FlexGrid.Column.Dispose">
          <a class="xref" href="C1.Win.FlexGrid.Column.Dispose.html#C1_Win_FlexGrid_Column_Dispose">Dispose()</a>
        </td>
        <td class="markdown level1 summary"><p>Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Dispose_System_Boolean_" data-uid="C1.Win.FlexGrid.Column.Dispose(System.Boolean)">
          <a class="xref" href="C1.Win.FlexGrid.Column.Dispose.html#C1_Win_FlexGrid_Column_Dispose_System_Boolean_">Dispose(bool)</a>
        </td>
        <td class="markdown level1 summary"><p>Releases unmanaged and - optionally - managed resources.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Finalize" data-uid="C1.Win.FlexGrid.Column.Finalize">
          <a class="xref" href="C1.Win.FlexGrid.Column.Finalize.html#C1_Win_FlexGrid_Column_Finalize">~Column()</a>
        </td>
        <td class="markdown level1 summary"><p>Finalizes an instance of the <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> class.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Invalidate" data-uid="C1.Win.FlexGrid.Column.Invalidate">
          <a class="xref" href="C1.Win.FlexGrid.Column.Invalidate.html#C1_Win_FlexGrid_Column_Invalidate">Invalidate()</a>
        </td>
        <td class="markdown level1 summary"><p>Invalidates this column, causing it to be repainted.</p>
</td>
      </tr>
      <tr>
        <td id="C1_Win_FlexGrid_Column_Move_System_Int32_" data-uid="C1.Win.FlexGrid.Column.Move(System.Int32)">
          <a class="xref" href="C1.Win.FlexGrid.Column.Move.html#C1_Win_FlexGrid_Column_Move_System_Int32_">Move(int)</a>
        </td>
        <td class="markdown level1 summary"><p>Moves a <a class="xref" href="C1.Win.FlexGrid.Column.html">Column</a> to a new position in the collection.</p>
</td>
      </tr>
    </tbody>
  </table>

</div>
