Hi,
1. I want to add groups dynamically at runtime.
I found one example in forum for adding textbox at runtime
which was as follows :
Dim columnlist As Telerik.Reporting.ReportItemBase()
= New ReportItemBase(colcnt) {}
Dim textBox As Telerik.Reporting.TextBox = DirectCast(columnlist
(i), TextBox)
I have used the similar thing for grouping as :
Dim grouplist As Telerik.Reporting.ReportItemBase() = New
ReportItemBase(colcnt) {}
Dim group1 As Telerik.Reporting.Group = DirectCast(grouplist
(groupi), Group)
However I getting the error as: "Telerik.Reporting.ReportItemBase() cannot be converted into Telerik.Reporting.Group"
I tried all the combinations but could not get the desired output.
What should I use in place of ReportItemBase? If possible please give me an example of creating groups at runtime.
2. As we can fix the height of a particular section can we set the width as well?
Right now the width for each section(header,detail etc) is getting adjusted according to the number of textbox it holds.
I am applying different color for different sections. Due to which the difference of width between each section is easily getting noticed.
Thanks,
Rahul
1. I want to add groups dynamically at runtime.
I found one example in forum for adding textbox at runtime
which was as follows :
Dim columnlist As Telerik.Reporting.ReportItemBase()
= New ReportItemBase(colcnt) {}
Dim textBox As Telerik.Reporting.TextBox = DirectCast(columnlist
(i), TextBox)
I have used the similar thing for grouping as :
Dim grouplist As Telerik.Reporting.ReportItemBase() = New
ReportItemBase(colcnt) {}
Dim group1 As Telerik.Reporting.Group = DirectCast(grouplist
(groupi), Group)
However I getting the error as: "Telerik.Reporting.ReportItemBase() cannot be converted into Telerik.Reporting.Group"
I tried all the combinations but could not get the desired output.
What should I use in place of ReportItemBase? If possible please give me an example of creating groups at runtime.
2. As we can fix the height of a particular section can we set the width as well?
Right now the width for each section(header,detail etc) is getting adjusted according to the number of textbox it holds.
I am applying different color for different sections. Due to which the difference of width between each section is easily getting noticed.
Thanks,
Rahul