[Solved] stringGrid in a TFrame, how store columns width? lazarus / 31-LCL ---------------------------------------------------------------------- BlueIcaro · 2022-03-07 09:26 Hi, I started to work with TFrame. I put a TStringGrid on a TFrame, and works nice. But I would like store the width of cols, and other properties of stringGrid. Before use TFrame, I put the stringGrid in a TForm and I used TXMLPropStorage with Sesion Properties. But TFrame hasn't Sesion properties. is there a way to use TXMLPropStorage (or some thing equivalent )with TFrame as used TForm?. Or I have to hard code some procedures to store the properties?. Thanks /BlueIcaro ---------------------------------------------------------------------- BlueIcaro · 2022-03-08 13:17 Hi, I found that TStringGrid has a save method to do it Code: [Select]     Grid.SaveOptions := [soDesign];     Grid.SaveToFile('Name'); To restore can be used: Code: [Select]     GridEntradasSistema.SaveOptions := [soDesign];     GridEntradasSistema.LoadFromFile(Self.Name);  /BlueIcaro ---------------------------------------------------------------------- MarkMLl · 2022-03-08 13:20 Note that any design-time properties must be applied directly to the original frame, not to an instance which has been placed on a form. If you edit a frame in a form, the settings do not get transmitted back to the original definition and you are (very) likely to have to edit the .lfm to get rid of them. MarkMLl