Nested rows, is this possible?
Posted: Sat May 17, 2014 12:06 pm
Hello, I have something like this:
I want to make yellow row nested in a green one, so its not visible until I expand the green row. Is something like this possible? Like a subrow inside a row.
This is how I add the row:
Thanks!
I want to make yellow row nested in a green one, so its not visible until I expand the green row. Is something like this possible? Like a subrow inside a row.
This is how I add the row:
Code: Select all
table := TRVTableItemInfo.CreateEx(1, 3, rvLog.RVData);
with table do
begin
BorderWidth := 0;
CellVPadding := 0;
CellBorderWidth := 0;
CellVSpacing := 0;
BorderVSpacing := 0;
Color := clNone;
BestWidth := 0;
Options := [rvtoRTFAllowAutofit];
Cells[0, 0].BestWidth := 75;
Cells[0, 1].BestWidth := 50;
Cells[0, 0].Clear;
Cells[0, 1].Clear;
Cells[0, 2].Clear;
Cells[0, 0].AddFmt('%s', [ATime], 0, 0);
Cells[0, 1].AddFmt('%s', [ATypeStr], ATypeStyle, 1);
Cells[0, 2].AddFmt('%s', [AData], ADataStyle, 2);
end;
rvLog.AddItem('', table);