Been looking at the new table view component and it looks nice but I can't seem to get the lookup to work for custom categories. Do you have an example? here's what I've been trying.
tvJobs.Items.Clear;
tvJobs.Categories.Clear;
tvJobs.Header.Text := 'Jobs';
tvJobs.Header.Font.Size := 18;
tvJobs.CategoryType := tvctCustom;
for Round in FDataModule.Rounds do
begin
cat := tvJobs.Categories.Add;
cat.Id := Round.Id;
cat.Text := Round.Description;
cat.LookupText := Round.Id.ToString;
end;
tvJobs.LookupBar.AutoLookup := False;
I was expecting the ManualLookupCategory event to fire but it doesn't - any ideas? Leaving tvJobs.LookupBar.AutoLookup as true does nothing too. If I click on the category header or lookup bar nothing happens.