Reputation: 68
Is it possible to have two records per line in the same gridView in ASP.NET (I'm using C#)? Basically, let's assume this is what we have in our table:
Names
------
John
Paul
James
Edward
Sean
Kevin
Here's what I would like to see in the gridView:
John | Paul
James | Edward
Sean | Kevin
Is there a way to do this with a gridView?
Thanks
Upvotes: 1
Views: 662
Reputation: 33306
Not in a GridView but it is possible with a DataList, please see:
http://msdn.microsoft.com/en-us/library/bb525467.aspx
Upvotes: 2
Reputation: 15253
You need to use the templating offered by the ListView to get this type of custom layout:
Upvotes: 1