Click here to Skip to main content
15,881,600 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hi,
I have a results set as

SQL
type      |  category    |  count 

computer  |  pc          | 2
          |  keyboard    | 2
          |  moniter     | 2
Furniture |  chairs      | 2
          |  cupboard    | 2
          |  moniter     | 2


i want the resultset as merging the empty column below computer and furniture
can it wll be posible.
Posted
Comments
Bernhard Hiller 22-Jan-14 2:17am    
What's your UI? A .Net application with WIndows Forms / WPF or a Web site?
Anyway, that has to be done there, not on the SQL Server.
aassaahh 22-Jan-14 3:17am    
my UI is asp.net , I have display the table as i required,I have merge it using rowdataboud event of gridview but my problem is I have a print button which print the display html from Internet explorer,when i press print button i dont get the output as merge cell .

1 solution

Here[^] is my article on turning lists of data in to a pivot, or in to one cell.
 
Share this answer
 
Comments
RaviRanjanKr 22-Jan-14 22:38pm    
5+

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