How to set livegrid columnwidth to take all space?

I have a livegrid and 5 columns in the livegrid. This livegrid is binded to a fdquery. The Align=Client for the livegrid. In the design time, I see these 5 columns takes all available width. but in the runtime, they are in a certain width. That width is not the defaultcolumnwidth I set.  I am wondering how to have the columns fill up the available space.



You can use the following code to accomplish this:

  TMSFMXGrid1.Options.ColumnSize.StretchAll := True;
  TMSFMXGrid1.Options.ColumnSize.Stretch := True;

Kind Regards,