How can I get report columns from code behind?
How can I get report columns from code behind?
Hi,
I am working on one project where I am creating one wizard to configure report filters, orderby and groupby columns from web UI. I already have created some base reports (.mrt) which contains 10 to 12 columns in each. I want user can select orderby and group by columns from these 10 / 12 columns and also set filters through wizard.
My question is, I want to list all columns from selected report in one list box so user can select one or more columns for groupby/order by.
Can anyone please help me in this?
Thanks
I am working on one project where I am creating one wizard to configure report filters, orderby and groupby columns from web UI. I already have created some base reports (.mrt) which contains 10 to 12 columns in each. I want user can select orderby and group by columns from these 10 / 12 columns and also set filters through wizard.
My question is, I want to list all columns from selected report in one list box so user can select one or more columns for groupby/order by.
Can anyone please help me in this?
Thanks
- Attachments
-
- 1983.Templates.rar
- (833.25 KiB) Downloaded 227 times
How can I get report columns from code behind?
Hello.
For more detailed answer we need to see your report template.
Thank you.
You could get all components of report in your code. Select from them headers and list them.vatsal24 wrote:I am working on one project where I am creating one wizard to configure report filters, orderby and groupby columns from web UI. I already have created some base reports (.mrt) which contains 10 to 12 columns in each. I want user can select orderby and group by columns from these 10 / 12 columns and also set filters through wizard.
My question is, I want to list all columns from selected report in one list box so user can select one or more columns for groupby/order by.
Can anyone please help me in this?
For more detailed answer we need to see your report template.
Thank you.
How can I get report columns from code behind?
Hi I have attached one template with my first post. Please let me know if you want any other detail from my side.
Thanks.
Thanks.
How can I get report columns from code behind?
Hello.
Please, look at the attached sample project.
Thank you.
In your case it will be more easier to create report by code.vatsal24 wrote:Hi I have attached one template with my first post. Please let me know if you want any other detail from my side.
Please, look at the attached sample project.
Thank you.
- Attachments
-
- 1984.DynamicCreateReportWithGroups.zip
- (17.21 KiB) Downloaded 278 times
How can I get report columns from code behind?
Thanks for your quick reply 
I will see attached project and let you know if I have any issue.
Thanks

I will see attached project and let you know if I have any issue.
Thanks
How can I get report columns from code behind?
Hi,
I saw project sent by you but I want exact reverse functionality. i.e. I want to fetch columns names, group by column names, sorting column names and filters from this report I have given. Because the report I gave you is a base report which is already created. On first step User will select one existing report (like I sent you), on second step I want to show user the list of columns from base report, name of columns which are already grouped by and user can select or remove any group by column if he/she wants and same things for order by columns and filters.
Can you help me in this direction? I can provide you more information if you want...
Once again Thanks for all your support...
I saw project sent by you but I want exact reverse functionality. i.e. I want to fetch columns names, group by column names, sorting column names and filters from this report I have given. Because the report I gave you is a base report which is already created. On first step User will select one existing report (like I sent you), on second step I want to show user the list of columns from base report, name of columns which are already grouped by and user can select or remove any group by column if he/she wants and same things for order by columns and filters.
Can you help me in this direction? I can provide you more information if you want...
Once again Thanks for all your support...
Re: How can I get report columns from code behind?
Hello,
Please see the sample report in attachment.
Thank you.
Please see the sample report in attachment.
Thank you.
- Attachments
-
- SelectingColumns.mrt
- (47.02 KiB) Downloaded 247 times