user2471103
user2471103

Reputation: 68

Multiple records in same gridview line in ASP.NET

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

Answers (2)

hutchonoid
hutchonoid

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

IrishChieftain
IrishChieftain

Reputation: 15253

You need to use the templating offered by the ListView to get this type of custom layout:

ListView Styles and Templates

Upvotes: 1

Related Questions