I have a databse table with some columns of data (area inside green), I want to retrieve table data in such layout with paging support, how can I create this layout? (there is no problem for retrieving data from DB) does GridView support such layout?
Check the following article I gues this is exactly what you need: The asp:ListView control (Part 1 - Building a Product Listing Page with Clean CSS UI)
Related
Anyone know how to create a view like this using gridview DEVEXPRESS?
Take a look at Views and Levels help article:
You can use one of the following View types to display data according to your needs:
...
Banded Grid View - displays data in a tabular form similar to a Grid View, while organizing columns into bands.
Advanced Banded Grid View - displays data similar to a Banded Grid View. However, columns can be arranged one under another and can have different heights.
Related help articles:
Banded Grid View
Customizing the Band Layout
I'm stuck with an issue in the sales order Grid in Dynamics AX 2012 R2. Somehow after adding new columns to the grid via personalization, the newly added columns always shifts to the left side after closing/opening the sales order list page.
Is there any Grid property that handles the arrangement of the columns?
how can we modify the grid columns?
Thanks!
Well, it sounds like an error, this is not how it works for me.
Consider adding the fields to the SalesTableListPage form. The fields are initially (or after reset of user settings) listed in the order in the form grid.
Might look into the list page interaction classes which is responsible for form behavior instead of the AOT on listpages.
more information on the available methods can be found on msdn
https://msdn.microsoft.com/en-us/library/listpageinteraction.aspx
but it is possible for example that a var/isv customization modifies the form after it is loaded
I am working on a Dotnetnuke module and i try to read the products i have in my sql server database.
I managed to read the data from the asp tools LinqDataSource and ive inserted them in listview etc. This is now what i need.
The ideal would be if i could read from database my table, and for each row on the db.table to dinamically create a asp:table cell in the design. The asp table ould be 4x5. so 4 columns and 5 rows, and each cell would include an image and the text i load from the database(the image wont load from db, its the same image for all products).
Also if there are more than 20 products then a 2nd page is created with the rest, and page navigation at the bottom.
this is the result i want.
I didnt try much programmatically as i dont really know how to start this. Only from design i tried a few things but they are like a listview so it doesnt help much.
Any ideas or suggestions people?
I managed to make the interface of the picture i provided and made all products clickable, all this from the design view with a ListView.
You can ask if you want any details
I have a Query that the datasources it is set to can change dynamically. I want to take the results of this Query and bind that to a Grid, so each time it may have new fields, and data.
I already added a Grid to my form, and added the Common table as a datasource. I tried to set the dataSource of the grid, and iterate through the fields and dynamically add them, but no data is showing up.
Have a look on the form SysTableBrowser.
It builds the grid based on a tableId.
Maybe you can change SysTableBrowser to accept a query.
Good luck!
Hi all:
I am working on a Dynamic Data project using scaffolding on VS2010, and I make it work very nice with all tables, it shows every table with all fields, Edit, Insert, view-related-items, etc. But i have some tables with too many fields, i would like to restrict or limit the number of columns to display on some tables. How do I do that? I tried with the Custom pages, specifying the fields I'd like, creating ItemTemplates, DynamicField, and worked fine, showing the columns specified, but then the autogenerated columns, specifically those "View Related-Table-Items", stopped to show themselves...
Thanks in advance
Pinchete
You can set the grid not to autogenerate colums with this in the markup
AutoGenerateColumns="False"