Groups | Blog | Home
all groups > asp.net webcontrols > october 2005 >

asp.net webcontrols : Displaying a Graphic in the cell of a datagrid


Andrew Chalk
10/29/2005 5:41:28 PM
I want one column of my DataGrid to display the same graphic in each row.

Should I do this with a templated column?
If so, what should the HTML look like in the specification?

Many thanks.

Eliyahu Goldin
10/30/2005 12:00:00 AM
It doesn't have to be a templated column. It could be a bound column with
ItemStyle.CssClass set into a css style including a background-image rule.
Or, if you prefer, it could be indeed a templated column including an <img
.... > control.

Eliyahu

[quoted text, click to view]

Andrew Chalk
10/30/2005 12:00:00 AM
Thanks. I eventually used a tremplated column with an ImageButton.

- A


[quoted text, click to view]

AddThis Social Bookmark Button