TCustomStringGrid vs TStringGrid lazarus / 10-Designer ---------------------------------------------------------------------- cazzajay · 2011-09-20 09:22 Hi all I am after a basic string grid that can load and save a CSV format file.  I note that there is a component mentioned in the documentation (http://lazarus-ccr.sourceforge.net/docs/lcl/grids/tcustomstringgrid.l oadfromcsvfile.html) called Custom String Grid, apparently in grids.pas. However, I cannot find it in the components of the IDE at the top - I can only find TStringGrid which does not appear to have a LoadFromCSVFile procedure. Is this the same control but renamed? If so, is it possible to load and save a CSV file in it? TStringGrid seems to require an XML specification which leads me to think it might be a different component altogether, in which case, how do I get a TCustomStringGrid on my form? Any help appreciated - thanks! James ---------------------------------------------------------------------- IPguy · 2011-09-26 01:10 James, there is a SaveToCSVFile(); method for the standard stringgrid. I believe it was recently added. I'm using 0.9.31-32432-2.5.1-win32. ---------------------------------------------------------------------- cazzajay · 2011-09-26 09:04 Thanks IPGuy. I don't see that version on SourceForge. Has it been released to Binary yet? ---------------------------------------------------------------------- Shebuka · 2011-09-26 09:08 Quote from: cazzajay on September 26, 2011, 11:04:02 amThanks IPGuy. I don't see that version on SourceForge. Has it been released to Binary yet? Look at Daily Snapshots ---------------------------------------------------------------------- Blaazen · 2011-09-26 12:49 See declaration of TStringGrid: Code: [Select]{ TStringGrid }   TStringGrid = class(TCustomStringGrid)   protected     class procedure WSRegisterClass; override;   public     property Modified;   published     property Align;     property AlternateColor;     property Anchors;     property AutoAdvance;     property AutoEdit;     property AutoFillColumns;     property BiDiMode;     property BorderSpacing; ............. etc. As you can see, it is the same, only publishing public properties of ancestor. Published properties are visible in Object Inspector. You can eventually use TCustomStringGrid if you will create it in code. ---------------------------------------------------------------------- cazzajay · 2011-10-03 10:52 Thanks all!