Skip to content

DataGridViewColumn

Radu Martin edited this page Apr 14, 2017 · 9 revisions

These extenders provide a lot of style settings.

SetStyles(int Width, 
          DataGridViewContentAlignment Alignment = DataGridViewContentAlignment.MiddleLeft,
          string Format = null)

SetAutoSizeFillStyle(int MinimumWidth, float FillWeight = 100)

SetAutoSizeAllCellsStyle()

SetNumberStyle(int Width = 80)

SetDecimalStyle(int Width = 80)

SetMoneyStyle(int Width = 80)

SetPercentStyle(int Width = 80)

SetDateStyle(int Width = 110)

SetDateTimeStyle(int Width = 160)

SetDateTimeWithSecondsStyle(int Width = 160)

Executing can be joined, because these methods return the initial column:

column.SetDateTimeStyle().SetAutoSizeFillStyle(100);
Clone this wiki locally