Jo Ju

Jo Ju

  • NA
  • 11
  • 0

Sort GridView

Dec 8 2005 6:50 PM

Hi,

I am using C# and asp.net.

I have a Gridview control that just displays data in the following format :

Company Name                        Amount
--------------                       ---------

Grid View Display
************
   
Birkenstock Central                      100$ 
SIRIUS Satellite Radio                   2000$
Buy.com                                     310$
LimitedToo.com                           500$
MyWeddingFavors.com                 1245$
SunJewelry.com                          567$
eVitamins.com                            743$
 
but i want the Grid view to display data alphabetically with each alphabet being the header text something like this

A

American Express                      310$
Amazon                                    510$

B

Buy.com                                  310$                   
Birkenstock Central                    100$

and i want all the datas displayed in two columns that is from A-N in one column and then O-Z in another column


A                                                                  O

American Express          310$                            Owl     987$
Amazon                        510$                           Ohjhj   878$

B                                                                  . .
                                                                    ..
Buy.com                   310$                                ..
Birkenstock Central     100$

C

Csds                       876$                        
.. 
..                                                         
..                                                         
..
N                                                                    Z

Nobles    980$                                                  Zinc   9898$

Just dont know how to start it.

Any help appreciated.