This is a migrated thread and some comments may be shown as answers.

Adding multiple textboxes on a header using a loop?

1 Answer 147 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Albert
Top achievements
Rank 1
Albert asked on 11 Nov 2008, 08:18 AM
Only the first textbox seems to get added.
Like
for (int x=0;x<5;x++){
    Telerik.Reporting.TextBox tbx = new Telerik.Reporting.TextBox();
    tbx.Value = x.ToString();
    headersection.Items.Add(tbx);
}

Help me plz

1 Answer, 1 is accepted

Sort by
0
Steve
Telerik team
answered on 11 Nov 2008, 11:39 AM
Hello Albert,

Actually they are all there, just overlapped since you do not specify location and size for them. Place a textbox in the report designer and then go into the InitializeComponent() method to see the properties generated for specific items.

All the best,
Steve
the Telerik team

Check out Telerik Trainer, the state of the art learning tool for Telerik products.
Tags
General Discussions
Asked by
Albert
Top achievements
Rank 1
Answers by
Steve
Telerik team
Share this question
or