473,498 Members | 1,671 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

group data in grid

NuB
I have to create a datagrid that shows my data like this:

BMW
325i
325ci
525
Lexus
IS 300
GS
Mercedes
CL 500
SL
M

How can i group my data to show like this?

Nov 19 '05 #1
3 1195

Google for "asp.net grouping subheading datagrid" .. it brought up several
articles on this

"NuB" wrote:
I have to create a datagrid that shows my data like this:

BMW
325i
325ci
525
Lexus
IS 300
GS
Mercedes
CL 500
SL
M

How can i group my data to show like this?

Nov 19 '05 #2
Heu Nub I am currently trying to do the same type of thing...my
approach has been to query the db to fill a dataset with my data..

Then using an array loop over the dset tables and using the select
methods grab the right data and then display it in a repeater.. verrrry
ugly but the datagrid control dosesn't seem to allow this type of
grouping behaviour..

My issue now is to get the rows returned to be bound to the repeater...

Have you decided on an approach yet??

I can post some code if it will help you out but maybe you have a
better idea on how to do this??

Dave

Nov 19 '05 #3
NuB
I'm still working on it. I have my data being grouped but I can't get the
correct "header/make" information showing for the correct car model.


<dr****@canoemail.com> wrote in message
news:11**********************@f14g2000cwb.googlegr oups.com...
Heu Nub I am currently trying to do the same type of thing...my
approach has been to query the db to fill a dataset with my data..

Then using an array loop over the dset tables and using the select
methods grab the right data and then display it in a repeater.. verrrry
ugly but the datagrid control dosesn't seem to allow this type of
grouping behaviour..

My issue now is to get the rows returned to be bound to the repeater...

Have you decided on an approach yet??

I can post some code if it will help you out but maybe you have a
better idea on how to do this??

Dave

Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
3081
by: Paxton | last post by:
Hi, I'm trying to display the total page views per page within a given date range, but the correct SQL is seemingly beyond me. I get the correct result with a straightforward Group By and Count...
2
4852
by: Jordan O'Hare | last post by:
Hello Everyone, I am after some help with the following: I have a windows application that contains a list box and two data grids. All three controls are binded to a dataset that contains...
5
2472
by: pmud | last post by:
Hi, I need to display columns in a data grid based on 7 different queries. Now I have 32 questions: 1. Is it possble to have 1 single data adapter with 7 queries & 1 data set or do I need to...
1
2281
by: Alok Kumar | last post by:
Hi guys! I'm facing some problem with the data grid. My table data is something like this Group Name isMarried
2
2485
by: Josef Meile | last post by:
Hi, I'm using a ComboBox, some Textboxes, and a DataGrid to represent a many-to-many relationship between Person and Course. Each time that I change the value in the ComboBox (which for now is...
2
3440
by: Sandeep | last post by:
Hi I want to know that can we show the result of group by query in the following way in datagrid Data is like that id val 1 4 1 5
3
2192
by: pmud | last post by:
Hi, I have a web page (asp.net, code:c#). I havean html table with text boxes. Based on the user input , records are displayed in the data grid below it. Now the datagrid has a large no. of...
5
2753
by: tshad | last post by:
Is there a way to carry data that I have already read from the datagrid from page to page? I am looking at my Datagrid that I page through and when the user says get the next page, I have to go...
5
2206
by: Roy Gourgi | last post by:
Hi, Is there a way to group rows by some columns in such a way that I can clearly see them in a distinguished fashion when I look at a view or table. This is my code below but when I try using...
9
3990
by: Anil Gupte | last post by:
After reading a tutorial and fiddling, I finally got this to work. I can now put two tables created with a DataTable class into a DataRelation. Phew! And it works! Dim tblSliceInfo As New...
0
7126
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
7005
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7168
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
5465
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
4916
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...
0
4595
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3096
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3087
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
293
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

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.