Hello,
in my code I set several categories with the following code
------------------------
while not Eof do
begin
with tmsfmxtblvwDisc.Categories.Add do
begin
Caption := Fields[1].AsString + ' (' + Fields[2].AsString + ')';
Id := Fields[0].AsInteger;
end;
Next;
end;
----------------------
Afterwards I set the items with the following code
-------------------------
while not Eof do
begin
with tmsfmxtblvwDisc.Items.Add do begin
Caption := Fields[2].AsString;
CategoryID := Fields[0].AsInteger;
end;
Next;
end;
---------------------------
The resulting tableview displays the caption only for the first categories. For all other categories I see a blank caption. Is this a bug?
Kind regards
Gernot
We are not experiencing difficulties here, with the following code, and a default tableview on the form, it works as expected.
Update: it is always the last Category Caption that is missing, even so it is set (I did a ShowMessage just before assigning it)
Kind regards
gernot
Did you test the sample, the sample works as expected so there must be something missing in your code,
Your code works. Mine is wrapped in beginUpdate/EndUpdate. I will continue to investigate this.
Kind regards
gernot
I cannot find anything wrong in my code. The weirdest thing is that I use this code identically in a version for iOS with your Native controls and sections instead of categories and there it works flawlessly.
Can you perhaps send us a sample, or send us your code so we can investigate this here?
Sure - will do