group data in grid

  • Thread starter Thread starter NuB
  • Start date Start date
N

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?
 
Google for "asp.net grouping subheading datagrid" .. it brought up several
articles on this
 
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
 
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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads

grid format question 1
group dataset 4
select listbox 1
loop through dataset 4
text file read 2
text file format 1
dual drop downs 1
update question 1

Back
Top