How to automatically resize columns in C1flexGrid?

2.3k Views Asked by At

If I choose one of the WF which have C1flexGrid, and try to maximize that form, columns in my grid have the same width. What I am trying to do is have the columns auto fit to the width of the content, and have the last column fill the remaining space. Is this possible?

1

There are 1 best solutions below

0
Jay_7 On

For anyone still looking for the answer: You can use AutoSizeCols method and ExtendLastCol property

c1FlexGrid1.ExtendLastCol = true;    
c1FlexGrid1.AutoSizeCols(c1FlexGrid1.Cols.Fixed, c1FlexGrid1.Cols.Count - 1)

Reference.