J
Jeremy
If I create the Columns Dynamically in the OnInit Event,
for i := 1 to 15 do
Begin
if Assigned(myAssessment.GetProperty('column'+ i.ToString)) then
Begin
StrandColumn := TemplateColumn.Create;
with StrandColumn do
Begin
CssClass:='MenuCaption';
ItemStyle.VerticalAlign := VerticalAlign.Top;
ItemTemplate := TItemTemplate.Create;
Columns.Add(StrandColumn);
End;
End;
End;
and in the dataitem I have a custom class for each column ie
column1 : TMyColumn;
column2 : TMyColumn;
etc
etc
How do I go about setting the text of the data cell to a property of
TMyColumn.
ie column1.Name;
Cheers
Jeremy
for i := 1 to 15 do
Begin
if Assigned(myAssessment.GetProperty('column'+ i.ToString)) then
Begin
StrandColumn := TemplateColumn.Create;
with StrandColumn do
Begin
CssClass:='MenuCaption';
ItemStyle.VerticalAlign := VerticalAlign.Top;
ItemTemplate := TItemTemplate.Create;
Columns.Add(StrandColumn);
End;
End;
End;
and in the dataitem I have a custom class for each column ie
column1 : TMyColumn;
column2 : TMyColumn;
etc
etc
How do I go about setting the text of the data cell to a property of
TMyColumn.
ie column1.Name;
Cheers
Jeremy