Link to home
Start Free TrialLog in
Avatar of mbernierhq
mbernierhq

asked on

Bar chart with datagrid

Hi,

I need to represent data by a graphic bar in a datagrid, someone know how to do this??

Exemple:

|-----------------------------------------------------|
|Computers | 100 | XXXXXXXXX                     |
|Printers      | 50  | XXXXX                             |
|-----------------------------------------------------|
Of course I don't want Xs but a real colored bar.

Avatar of farkit
farkit

Avatar of Ramesh Srinivas
Make a template column for your bar.

- add an image tag in the template column (with a small bar with a size of 2 pixels) etc.

- adjust its width according to your calculation inside the ItemDataBound event handler.

should be simple enough.

regards,

KS

Avatar of mbernierhq

ASKER

I don't want to put code in HTML, I want all code in the codebehind page. I'm using VB with  ASP.NET.
I also need it to be inside the datagrid not a graphic by itself.
ASKER CERTIFIED SOLUTION
Avatar of Ramesh Srinivas
Ramesh Srinivas
Flag of United Kingdom of Great Britain and Northern Ireland 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