Click here to Skip to main content
16,009,144 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,
i have a web form in my project in which there are four drop down fields.

based on there selection i have to show data from database table.
but i have to show data by grouping it.

in each row there are three fields which are repetitive so i want to take them as
header for each Group:
Col. Heading -- species --- lot-type --- grade
Col. Value -- -- Teak ------ pole --------- I

Here other details regarding this group


Then Again
Col. Heading -- species --- lot-type ---- grade
Col. Value -- -- Teak ------ pole --------- II

Here other details regarding this group

Like this i have to show my data in gridview.
i am using c# code.

how i implement this.

please help

thanks
Posted
Updated 30-Jun-14 1:20am
v2

 
Share this answer
 
Hi,

You can use a third party controls that will be good option but if you still want to stick with Asp.net gridview, then probably you can format the datatable in that format and bind it to the data source.

Or you can use inner gridview and bind each inner control in Rowdatabound event.

Hope this will help you
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900