[Lazarus] Should StringGrid1.Clear clear the fixed rows / columns?

t.wieckowski at gmail.com t.wieckowski at gmail.com
Tue Aug 2 13:36:20 CEST 2011


2011/8/2 Graeme Geldenhuys <graemeg.lists at gmail.com>:
> Then change Clear to simply clear the grid but keep the fix rows.

what about keeping compatibility, many users will be surprised

> Or introduce a boolean parameter to Clear() like what was proposed earlier.
> Yes I fully understand what you wanted Clear to mean - blank the whole
> grid. But clearly that is not what the Lazarus users expect. This is not
> the first time this issue was brought up [and surely not the last], so
> that is just proof of my previous sentence.
>
> Just my 2ยข worth...
>

I don't see the problem, current behavior of the Clear method is ok for me.
This problem can be easily solved by setting StringGrid1.RowCount or
StringGrid1.Rows[i].Clear.

Regards,
Tomek




More information about the Lazarus mailing list