--- El lun 1-ago-11, John Repucci <[email protected]> escribió:
De: John Repucci <[email protected]> Asunto: Re: [Lazarus] Should StringGrid1.Clear clear the fixed rows / columns? A: [email protected] Fecha: lunes, 1 de agosto de 2011, 16:14 From: Jesus Reyes <[email protected]> ... Delphi grids do not implement a clear method :D so this is not a compatibility problem, or is it?. The add-on component VirtualStringView/Tree does implment a clear method that does not delete the headers. Lazarus grids never meant to be compatible with virtualstringview/tree. I can envision cases where I would like a completely empty SG and cases where I would like the fixed rows / columns to survive. ex 1: Instead of creating a 2nd SG with a completely different header structure and purpose, wipe the original, add in the desired new fixed cells and start to fill it. you can do this after grid.clear, or simply grid.rowcount := grid.fixedrows and then change the columns titles ex: 2: (my current case...) Load in data, process it and then I need to purge the data, so I clear the SG and load in more data. you can do this with grid.rowcount := grid.fixedrows (which is btw unsupported in delphi AFAIK), no need to use clear method John Jesus Reyes A.
-- _______________________________________________ Lazarus mailing list [email protected] http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus
