Board index » delphi » TStringGrid BUG!

TStringGrid BUG!

why the following doesn't work:

  stringgrid1.row[1].commatext:=stringgrid1.row[1].commatext;
  stringgrid1.row[1].text:=stringgrid1.row[1].text;

the fault is that the empty fields are eliminated (!!)
example: 123,,123, is converted into 123,123,,

the "original" tstrings-object works well!

martin.goe...@t-online.de

 

Re:TStringGrid BUG!


I remember finding this a while ago. I tracked down the source but couldn't
find a work-around without changing the VCL (which I don't like to do).
Eventually I just created a temporary TStringList, set the Text of that,
then set the StringGrid one cell at a time from the TStringList.
--
Tim Borman
tbor...@nospam.prophase.com
please reply to this newsgroup
-----------------------------------------------------

Quote
martin goebel wrote in message <6l5kmq$p...@forums.borland.com>...
>why the following doesn't work:

>  stringgrid1.row[1].commatext:=stringgrid1.row[1].commatext;
>  stringgrid1.row[1].text:=stringgrid1.row[1].text;

>the fault is that the empty fields are eliminated (!!)
>example: 123,,123, is converted into 123,123,,

>the "original" tstrings-object works well!

>martin.goe...@t-online.de

Other Threads