Click here to Skip to main content
16,021,430 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i have scenario like i have table which contains values like

ord_id product_name
------ -------------
1 xxx
-----------------
2 xyz
---------------
2 xyw
---------------
3 yzx
---------------

in the above example i have two rows with same ord_id but with different product name. i am using a data grid to show the details. i want to show the above values in my data grid as below

ord_id product_name
------ -------------
1 xxx
----------------
2 xyz
xyw
---------------
3 yzx
---------------

how can i do this.please help me in this
Posted

1 solution

By creating a template for your grid that merges the two strings and displays them in the one column.

Are you using C# 2.0, or 3.5 ?
 
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