Link to home
Start Free TrialLog in
Avatar of Niyas
Niyas

asked on

convert a datatable or list<objects> into gridview

I have a datatable with 3 fields state, carrier and rate. I have to display it in a gridview such that y-axis will be state and x-axis will be carrier and the corresponding cell display the rate.
datatable structure
state carrier rate
NB     hunt   1.0
NB     atl       .23
NX     hunt   2.5
NX     atl       .45

gridview should be
         hunt   atl
NB    1.0     .23
NX    2.5     .45
ASKER CERTIFIED SOLUTION
Avatar of Asim Nazir
Asim Nazir
Flag of Pakistan image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of Pratima
Pratima
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial