Reputation: 73
I want, data from select query should display in multiple tables or frames rather than in multiple rows. It means whatever data comes from select query, it should display each customer (lets say) data in a particular table or frame. How can i do this ?
Upvotes: 0
Views: 505
Reputation: 1876
I'm assuming your currently using a GridView and applying a datasource and binding? If so, to create 'one' table or frame or whatever HTML element, you can utilise the DataRepeater and create the table within the 'ItemTemplate'. However, depending on how you've structured the data (i.e. you're not applying any grouping to the dataset) you may need to nest repeaters or manipulate the data through the ItemDataBound.
Lastly, a more powerful approach, but time-consuming, would be creating a custom web control where you render out the HTML code as you see fit.
Upvotes: 1