Group by Queries in DataGrid

S

Sandeep

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
1 6
3 6
5 7
2 6
5 2

O/p I want to be in grid to be like that

id val
1 4
5
6
Total 15

2 6
Total 6

3


and like that

Is it possible to do that in datagrid then how tell me I m using
sqlserver2000 as database


Regards
Sandeep
 
N

Nitin

select * from table group by name
fill this data into dataset and bind the grid
Or use dataview
Nitin
 

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

Members online

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,053
Latest member
BrodieSola

Latest Threads

Top