473,398 Members | 2,125 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,398 software developers and data experts.

How to display gridview data as two columns

40
Hi,

I have a gridview in a webform. When the page is laoded the data from xml is binded to gridview. Say i have twenty product details in xml. Now i have written code to bind those details with gridview its working fine.
i want to display like this, for exmaple if there are twenty records i want to display ten datas on left and ten datas in right, Please find the sample below,
Records in dataset,

a 1
b 2
c 2
d 3


this is the way i want to display in gridview,


a 1 c 2
b 2 d 3

Please let me know asap,
Thanks in advance
Oct 29 '10 #1
1 2577
Frinavale
9,735 Expert Mod 8TB
I suggest using 2 GridViews.
Create 2 data sources by splitting the original datasource in half...then set the first GridView to the first-half -datasource and the second GridView to the second-half-datasource.
Oct 29 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: keithb | last post by:
I have a working ASP.NET 2.0 application that uses a GridView control. How can I enable the feature that allows a user to click on a column heading and sort the contents by the information in that...
1
by: karthi84 | last post by:
hi, can any one help me in displaying my sql database datas in an xml file and apply stylesheet to that displayed content. thanks in advance...
3
by: =?Utf-8?B?TTFpUw==?= | last post by:
I have a GridView control with a template column that I use to display my record data. I’ve included an EditItemTemplate with textboxes bound to the GridView for editing. On my SqlDataSource I...
1
by: prasathas | last post by:
i am trying to display my datas in the table format that i am fetching from database... while running the progrom it doesnt shows any error.. but in client side scripting the coding shows error as...
4
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i have a gridview that have auto columns on. Well one of the fields is a date field which shows the time by default. Is there a way to format without the time when Auto Columns are on? ...
2
by: Kenichi666 | last post by:
I have a column "description" in a sql table. it contains 2000 characters. I would like to setup my gridview column "Description" to show the first 30 characters only. At the moment it...
1
by: =?Utf-8?B?Z3V5?= | last post by:
I have a GridView that successfully populates, however when I interrogate its Columns collection in code it has 0 entries (there should be in my case 4) I need this to change the visible property...
1
by: jimmysjams | last post by:
I'm modifying someone else's code and I have hit a snag. I don't want to rewrite what's already there but I might have to. I have a gridview, in the gridview is a set number of columns that...
4
by: pradeep c | last post by:
I am new vb.net im am developing a stand alone application, can some one help me how to get and display datas which are in grid view to craystal report?
3
by: ahling | last post by:
Hi again. I have questions to ask. 1. It's not necessary that I write codes to bind the database to the gridview? 2. Why is it that when I try to view the gridview in the browser it shows me...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.