Click “Apply“, you now have an image button without the hassle of having a TemplateColumn. Switch over to the ASPX code view, and you should see the following:
Tuesday, April 05, 2005
Trick with DataGrid
You can trick the DataGrid's ButtonColumn to use an image for a button without having to use a TemplateColumn. It's really easy. In the DataGrid Property Builder, change the column's Button Type to “LinkButton”, then use regular HTML for the “Text” property, like

Click “Apply“, you now have an image button without the hassle of having a TemplateColumn. Switch over to the ASPX code view, and you should see the following:
Click “Apply“, you now have an image button without the hassle of having a TemplateColumn. Switch over to the ASPX code view, and you should see the following:
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment