Click here to Skip to main content
15,918,243 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am new ASP.NET.Please help me.
I Have list of student in database of different classes.But I want to display it according to class. For Example.. like this.

Class 1 (as Heading)
Name Class RollNo
Ravi 1 111
mukesh 1 112

class 2(as Heading)

Name Class RollNo
Saurabh 2 111
Brij 2 112

Class 3 (as heading)

and So on......

What I have tried:

I have try but not success..I have no idea how to do it..
Posted
Updated 3-Dec-16 19:37pm

1 solution

Get all the data order by class. Then you just need to insert a heading after each class group while binding it to the view.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900