[Lazarus] Should StringGrid1.Clear clear the fixed rows / columns?
Alexander Klenin
klenin at gmail.com
Mon Aug 1 09:25:45 CEST 2011
On Mon, Aug 1, 2011 at 18:13, Graeme Geldenhuys <graemeg.lists at gmail.com> wrote:
> On 08/01/2011 03:10 AM, John Repucci wrote:
>> I have a fixed row in my SG with the titles for the columns, but when I
>> do a SG.clear, the fixed rows are deleted.
>
> I have raised that issue too. I believe what you have to do, is set the
> RowCount property to equal FixedRowCount - instead of calling Clear.
>
> That kind of defeats the purpose of Clear, but hey it's Delphi
> compatible, so who cares. ;-)
>
Adding optional parameter "AClearFixed: Boolean = true" to Clear
may help without comprimising compatibility
--
Alexander S. Klenin
More information about the Lazarus
mailing list