Click here to Skip to main content

Jasbeer Singh asked:

Open original thread
i have table in database in which values are stored a

id cat test val
1. micoexpansion albumin 40
2. microexpanison sugar 20
3. microexpansion jhhj 30
4. macroexpnsion glucose 01
5. macroexpansion hjkh 50

when i am displaying this data in gridview

after formatting i get like this


microexpansion
albumin 40
microexpansion
sugar 20
microexpansion
jhhj 30
macroexpnsion
glucose 01
macroexpansion
hjkh 50


but i want to show like this

Microexpansion
albumin 40
sugar 20
jhhj 30

macroexpnsion
glucose 01
hjkh 50


how can i perform this..

Thanks in Advance.
Tags: C#, VB, VB.NET, ASP.NET

Preview



When answering a question please:
  1. Read the question carefully.
  2. Understand that English isn't everyone's first language so be lenient of bad spelling and grammar.
  3. If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are not welcome.
Let's work to help developers, not make them feel stupid.
Please note that all posts will be submitted under the The Code Project Open License (CPOL).



Web03 | 2.8.160204.4 | Advertise | Privacy
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100