Originally shared by David Berneda


Originally shared by David Berneda

Another new TeeGrid feature: "SubBand Rows".

Any kind of "band" can be displayed in-the-middle between rows, for example "Title" bands in the attached screenshot:

TeeGrid1.Rows.SubBands[0]:= NewTitle('North');
TeeGrid1.Rows.SubBands[6]:= NewTitle('East');

function NewTitle(const AText:String):TTitleBand;
begin
result:=TTitleBand.Create(nil);
result.Text:=AText;

result.Format.Brush.Visible:=True;
result.Format.Brush.Color:=TAlphaColors.Brown;
result.Format.Font.Color:=TAlphaColors.White;
end;

Complex "bands" like groups of titles and subtitles or even sub-grids are also allowed. Scrolling, cell selection, mouse-highlighting and touch / clicks are fully functional .

Comments