views:

1055

answers:

1

The idea is simple - I want all Command columns in my GridViews to have a specific button image for, say, the "Delete" button. Sounds like a job for skins, but I cannot find the right syntax for that...

A: 

Sounds like you want to template the GridView and add an image button to me. here is a link: http://andybrudtkuhl.wordpress.com/2006/06/12/gridview-with-an-imagebutton/

Gregory A Beamer
Well, uh, no. There is already a CommandField there which does exactly this with way less code. Of course, the ImageButton in your template could be set a SkinID which would solve the problem in a way... but IMHO that's kind of re-inveinting the wheel. I was hoping for something more elegant.
Vilx-