Click here to Skip to main content
15,922,007 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi,
Following is my Gridview,


ConsumerNo ConsumerName values Desc
123 AA 1 Ref
123 AA 2 Apv


I want the Result as the below from DataSource(either thro gridview or table):

ConsumerNo : 123
ConsumerName : AA
Ref : 1
Apv : 2


can anyone guide me how to acheive it
Posted

1 solution

Records cannot be vertical or horizontal. "Records" means some data. Therefore, the question does not make sense. You can put any piece of data in any cell of the grid view.
Please see:
http://quickstarts.asp.net/QuickStartv20/aspnet/doc/ctrlref/data/gridview.aspx[^],
http://msdn.microsoft.com/en-us/library/system.windows.controls.gridview%28v=vs.110%29.aspx[^].

—SA
 
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