Customizing GridView in c# - c#

I am new to C# programming. i have a database which contains different offers and i am able to get these offers from database.But now i want to create a custom look page for these offers(plz see image attached)
Suppose if there are 7 offers in database i want them on my page like the image of the offer on the top under that description. How can i do it ? i used Gridview but its giving result in table can i customize the grid view to get this look?

You have lot other options you can use dataview, repeater or JQuery.
Try googling on above topics and try to implement the process.

Related

Grapecity Active reports databinding from Code Behind

I have a .rpx file, which I want to bind data from one of my class library projects in C# and generate a PDF file out of it and save it to a specific location. I am able to bind the textbox that is in the page header. The issue that I am facing is in the detail section of the reports where I want to bind repetitive data. The detail section has textboxes, which I want to bind with the properties in the Object.
In short, would need to bind a list of object to the detail grid. So could someone let me know the best approach I can take for this?
The best approach to this is to either bind your data to a DataSet or a DataReader. Please refer to the Bound Data Sample that shows this as well as some other methods of data binding.
Sample Documentation: https://www.grapecity.com/activereportsnet/docs/v14/online/ar-sam-bound-data.html
Sincerely,
The GrapeCity Support Team
https://www.grapecity.com/support/contact

Create a report with its respective chart from a chosen LINQ query in C#

I'm quite busy reading different posts over how to create reports from dynamic queries. I have the next problem and maybe someone here can help me with this:
I have a class where I can create a dataGridView from a dynamic dataTable in a project made with C# from VS 2010. I populate my DataTable with one of 9 different linq queries that I have according to the user requirements, which also are saved in a register in my database. Starting from this point, I need to make a report where I can show of the same way the data selected.
I have found the code from the website got ReportViewer and it works quite good. Only I have a last problem. I need my report to show a chart according to the parameters passed via the DataTable. I saw the examples that they have there for the charts but they work quite restrict with what I need, and the code for the chart generator that is incluided in the Dynamic Table project is quite extense and a bit complex for a beginner like me.
Do you know any other examples that maybe I can find to use to make the code in my project? Many thanks in advance :).
I found another way to do it:
Now I'm using classes as datasources and filling arrays of these classes with the contect of the datatable.
I pass these arrays as my datasources for the project.
I group my data by the number of fields I want to display and then I choose between pre made .rdlc files where I show my data to the user.

how to design custom data view in asp.net?

just nondrying if I can achieve same look as this word table in asp.net. I know about gridView but I really want a controller to give me more flexibility when view the data from SQL server
just I want some advice in how to design same look
Use a ListView with an itemtemplate. Then you can simply create it as an HTML table.
ListView Web Server Control Overview
It looks like you have to use some css, maybe use jQuery DataTables and modify default styles. You may find some hints how to implement that here. You can create your own asp.net control or just go with ajax web service

Showing Database Content in a Certain View on a Web Page

Ok so here is what am thinking. Am making a recruitment website to hire people. It gives a functionality to the applicant that he can build his cv online! i have made various forms for that.
After filling the forms the applicant will submit the information to database and then am saving all of the information from the webpages related to building cv in the database!
Am thinking of providing the applicant a tab on which when he clicks "View CV" and i show him the cv he built on a new web page in the format like this
http://careers.telenor.com.pk/Page/Detail/VacancyView.aspx?PositionID=3003265
Like the fields should be on the left as table columns and their respective content in the database on the right! Can anybody completely guide me how i can do that ?? or direct me to a specific tutorial ?? i would be grateful! Am using Asp.net!
I have seen grid view! Much like a table it is! with columns on the top and below the values in the database! That is not the thing i want!
DetailsView control can be used to display fields from a single data record. It has that "format" you are looking for.
You can find documentation in this link http://msdn.microsoft.com/en-us/library/s3w1w7t4.aspx

collapsable master detail gridview structure

I need an advice for a c# asp.net project.
My client wants to see some reports via the gridview object with master/detail structure.
The main gridview will be full by all master data and each row will have a + icon (or button) on the first cells.
When user clicks this icon, the all details data of that master row should be seen under that master row with collaps action.
I can handle the database proccess but i can not figure out the collapsing part.
How can i put some extra rows under the specific row on the gridview object?
Thanks in advance..
Matt Berseth has one of the most impresive tutorials on this kind'a stuff
it contains til now 28 tutorials only on the GridView plus a lot from other asp.net controls as well using jQuery with them. I do learn plenty with him. I really love his work and I just wanna share this with you, you might actually get some good and professional ideas from his code!
There is a CodeProject article with downloadable source:
GridView inline Master/Detail record display
Thanks but its for updating or inserting.
Instead , i have found that page, it seems more effective.
GridView control to show master-child or master-slave data, written in c#, asp.net, and javascript.
Here is another good CodeProject blog. Explains multilevel master/detail without JavaScript.
http://www.codeproject.com/KB/aspnet/MultiNestMDGridview.aspx
This is the easiest to use control I've ever run across:
http://code.msdn.microsoft.com/CompleteGridView

Categories