ASP.NET Report C # Datatable

0

I need to create a report that is fed with a datatable.

Currently my project shows a general balance grid that is fed from a public static datatable that was worked in a class in the code behind C #.

This datatable or table contains the data already formatted, that is, the appropriate order and line spacing required with the name of the inscribed, it brings them as if they had been done in excel (without colors or bold or anything like that of course, only the line spacing I mean). It is therefore that I do not take away the idea that it would be wonderful to find a component in the report such as: a table grid that I can feed with this static C # datatable because I would not have to worry about anything other than the bold ones.

I do not know if it's possible, or I'm wrong.

In the end, if I consult again, the database would have to take time to create the lines one by one because they all differ. and I would have to go back to consult the BD.

Ex.

Balance sheet:

Circulating assets # one- # two- # 3- # Non-current assets # one- # two- # 3- # 4- # Total Assets #

And so on until the list is finished.

The initial cosulta that is in a method of the application only consults some changes of the BD and many others are calculated with formulas to thus form the official table.

I attach the structure model that is desired. I hope I have not confused.

Excel Here

Be careful, the report is not exporting it to excel, it should be in a report viewer and then printed.

    
asked by N'oel C'alero 02.09.2016 в 00:45
source

2 answers

0

Just to be able to format the report you do not have to use the dataGridView element, you have to use the ReportViewer

I leave you a video to guide you how to use it link from 6.30 onwards explains the part of the view, before it makes the link with the base

    
answered by 02.09.2016 в 22:27
0

Hi, I present you the kendo library, with it you automatically make a table of a very simple way, it is very well explained on the web.

Here I leave an example of use, any question you can ask me:

link

With the datasource you could treat the information as you would like, if you want it to be more accurate, please show more code and I'll tell you how to mount it, thanks.

    
answered by 02.09.2016 в 01:25