align a table created from a tab separated stringlist
Posted: Sat Sep 11, 2010 4:23 pm
Hi,
I was able to create a table using following code
The header row is always centered and bold and than the data rows are
dynamicully provided as a tab separated string like Left#9Right#9Right#9Left
I was able to create a table using following code
Code: Select all
.....
Table := TRVTableItemInfo.CreateEx(Rows, Cols, RVData);
Table.BorderWidth := 0;
Table.CellBorderWidth := 0;
for RowCounter := 0 to Fields.Count-1 do
begin
for ColCounter := 1 to Cols do
begin
Table.Cells[RowCounter,ColCounter-1].SetItemText(0,GetPiece(Fields[RowCounter],#9,ColCounter,ColCounter));
dynamicully provided as a tab separated string like Left#9Right#9Right#9Left