Click here to Skip to main content
12,078,259 members (45,696 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: SQL-Server WPF DataGrid
MealNo  MEAL 1  MEAL 2  MEAL 3   MEAL 4  MEAL 5
1       HOT DOG BURGER  SAMOOSA  CHIPS   CAKE
2       CHEESE  PIZZA   SAUSAGE  PIE     FRIES
I would like to display it like this
Meal 1  HOT DOG CHEESE
Meal 2  BURGER  Pizza
Meal 3  SAMOOSA SAUSAGE
Meal 4  CHIPS   PIE
Meal 5  CAKE    FRIES
Meal No is PKey then MEAL1 MEAL 2 MEAL 3 MEAL 4 MEAL 5 are columns
Posted 21-Sep-11 10:57am
Edited 21-Sep-11 19:21pm
v5
Comments
Marcus Kramer 21-Sep-11 16:19pm
   
It would help us a lot more if you would actually show us the table structures and not just the data. We can't help you unless we know the keys, etc.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

  Permalink  
Comments
Zubeid Hendricks 21-Sep-11 18:02pm
   
Thank you sir it works ,really appreciate it
Pravin Patil, Mumbai 22-Sep-11 0:48am
   
Nice answer..
My 5...

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web04 | 2.8.160212.1 | Last Updated 22 Sep 2011
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100