u want to have a look at some other controls like the datalist or repeater controls for ur requirement as i am not sure u can very easily acheive what u r trying to do using datagrid ...
Main Topics
Browse All TopicsI am having a problem figuring out how to create a web page that has a datagrid with 2-3 columns instead of running off the page. For example:
This is currently what I have:
1223 John Doe
2334 Jane Doe
4432 Jack Doe
3348 Joe Doe
What I would like to have:
1223 John Doe 2334 Jane Doe
4432 Jack Doe 3348 Joe Doe
Two columns will work, but would like 3 columns.
I am using Visual Studio 2003 .net with VB to create a ASP.net page.
Thanks for any assistance
This Question has been solved and asker verified All Experts Exchange premium technology solutions are available to subscription members.
Experts Exchange has been collecting answers to technology questions since 1996…3 million and counting! If you have a question, chances are we already have your answer.
If you can't find the exact answer you're looking for, ask our exclusive community of 50,000 experts. You’ll get a personalized answer from a trusted professional.
Thousands of free tech tips, tricks, how-to’s and tutorials are available in our peer reviewed articles section. See for yourself how smart our experts are, no login required.
Access the answers to your technology questions today.
30-day free trial. Register in 60 seconds.
Members of the expert community talk about why the experience at Experts Exchange is different than what you will find anywhere else.

Try it out and discover for yourself.
30-day free trial. Register in 60 seconds.
Join the community of experts here and help other tech pros by answering question in your area of expertise. You can earn FREE access to all Experts Exchange's premium features and resources.
using john's idea , use this...
<asp:DataList id="dlMul" runat="server" RepeatColumns="2" RepeatDirection="Horizonta
<ItemTemplate>
<asp:Label ID="lblName" Runat="server"><%# DataBinder.Eval(Container.
<asp:Label ID="lblNo" Runat="server"><%# DataBinder.Eval(Container.
</ItemTemplate>
</asp:DataList>
for my own testing i took a small xml file loaded it into a dataset and then used that as my datasource for the datalist...please modify according to your needs...
Private Sub loadDL()
Dim objDS As DataSet
Try
objDS = New DataSet
objDS.ReadXml("C:\exex\DL2
dlMul.DataSource = objDS
dlMul.DataBind()
Catch ex As Exception
Response.Write(ex.Message)
Finally
If Not objDS Is Nothing Then
objDS.Dispose()
objDS = Nothing
End If
End Try
End Sub
Have fun...
Zulu
here's the XML is used
<root>
<record>
<name>a</name>
<no>1</no>
</record>
<record>
<name>b</name>
<no>2</no>
</record>
<record>
<name>c</name>
<no>3</no>
</record>
<record>
<name>d</name>
<no>4</no>
</record>
<record>
<name>e</name>
<no>5</no>
</record>
<record>
<name>f</name>
<no>6</no>
</record>
</root>
Business Accounts
Answer for Membership
by: AerosSagaPosted on 2004-10-19 at 19:22:04ID: 12354190
You can manually specify whichever columns you want to show. Right click on the datagrid then hit property builder, then click on each column and you will see a visible checkbox, uncheck it for the ones you want to hide.
Aeros