Is there a way to set minimum width on individual columns in C1FlexGrid?

631 views Asked by At

Working with vb.net WinForms. I can set minimum width for the column collection of the flexgrid, but is there a way to make the minimum width different for each column? I cannot find anything that supports this. Pretty straightforward question but if any more info is needed let me know.

2

There are 2 answers

1
wknauf On BEST ANSWER

Newer C1FlexGrid versions provide the feature "Column.StarWidth", which is used to size all columns based on the available space in the parent control. Here, you can specify a min width for each col:

c1FlexGrid.Cols(2).StarWidth = "*";
c1FlexGrid.Cols(2).MinWidth = 100;

See https://www.grapecity.com/componentone/docs/win/online-flexgrid/C1.Win.C1FlexGrid.4.5.2~C1.Win.C1FlexGrid.Column~MinWidth.html