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

Adding dynamically item/field into report detail section

2 Answers 356 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Gourangi
Top achievements
Rank 1
Gourangi asked on 31 Mar 2008, 06:31 AM
Hi,

In windows application, I was trying to add a Telerik.Reporting.TextBox in report object's detail secation. I wrote something like this

Dim ri as New Telerik.Reporting.TextBox()
ri.Visible = True
ri.Value = "hello"
Report1.detail.Items.Add(ri)
ri.Left = Report1.empIDDataTextBox.Left + New Unit(100)
ri.Top = Report1.empIDDataTextBox.Top
ReportViewer1.RefreshReport()

I think it should display my newly added column/item but it wasnt.

Or is there any other way to add a new item/field/column in report dynamically?

Thanks.

2 Answers, 1 is accepted

Sort by
0
Hrisi
Telerik team
answered on 31 Mar 2008, 09:46 AM
Hello Divyesh,

Just set the Size of the newly created TextBox and you should be OK.


All the best,
Hrisi
the Telerik team

Instantly find answers to your questions at the new Telerik Support Center
0
Gourangi
Top achievements
Rank 1
answered on 31 Mar 2008, 10:27 AM
Hi Hrisi,

Its fine now.

Thanks for the help.
Tags
General Discussions
Asked by
Gourangi
Top achievements
Rank 1
Answers by
Hrisi
Telerik team
Gourangi
Top achievements
Rank 1
Share this question
or