# C1.Win.FlexGrid.Column.Width

## Content

<div class="doc-site-dotnet-api-container">



<h1 id="C1_Win_FlexGrid_Column_Width_" data-uid="C1.Win.FlexGrid.Column.Width*">Width Property
</h1>
<div class="markdown level0 summary"></div>
<div class="markdown level0 conceptual"></div>



<a id="C1_Win_FlexGrid_Column_Width_" data-uid="C1.Win.FlexGrid.Column.Width*"></a>
<h4 id="C1_Win_FlexGrid_Column_Width" data-uid="C1.Win.FlexGrid.Column.Width">Width</h4>
<div class="markdown level1 summary"><p>Gets or sets the width of this column, in pixels (the value -1 represents the default column width).</p>
</div>
<div class="markdown level1 conceptual"></div>
<h5 class="declaration">Declaration</h5>
<div class="codewrapper">
  <pre><code class="lang-csharp hljs">public int Width { get; set; }</code></pre>
</div>
<div class="codewrapper">
  <pre><code class="lang-vbnet hljs">Public Property Width As Integer</code></pre>
</div>
<h5 id="C1_Win_FlexGrid_Column_Width_remarks">Remarks</h5>
<div class="markdown level1 remarks"><p>Setting this property to -1 causes the grid to use the default column width for this column
(see the <a class="xref" href="C1.Win.FlexGrid.RowColCollection.DefaultSize.html#C1_Win_FlexGrid_RowColCollection_DefaultSize">DefaultSize</a> property).</p>
<p><b>Width</b> returns the width assigned to the column even if the row is invisible, and 
returns -1 if the row has the default height. To obtain the actual display width of a column, 
use the <a class="xref" href="C1.Win.FlexGrid.Column.WidthDisplay.html#C1_Win_FlexGrid_Column_WidthDisplay">WidthDisplay</a> property.</p>
</div>
</div>
