Auto resize column


Using anchors i set the movement and size of my components in the case of resizing the form. That is how I resize TDBAdvGrid component. But, I would also like to resize columns automatically when TDBAdvGrid resizes. Since there are no anchors to help me do it in design time how do I do it programatically?

I tried to use OnResize event (TDBAdvGrid) but I hope there is some better solution?

Did you consider to use the feature grid.ColumnSize.SynchWithGrid = true?

Yes, but it affects all columns proportionaly. I would need to resize only column1 when resizing the form and the rest to stay the same size...