Intersoft WebGrid Documentation
How-to: Use ButtonImage column type and assign the Image of the Button
See Also Send comments on this topic.

Glossary Item Box

WebGrid now includes a new ButtonImage column type. Therefore, you can simply display a button with image.

In this topic, you will learn how to display button image in WebGrid.

To use ButtonImage column type

  1. Bind WebGrid to AccessDataSource (Using Customers table from NorthWind data source).
  2. Open WebGrid.NET Designer >> Advanced.
  3. Go to RootTable >> Columns. Add a new column and named it as btnImage.
  4. Set Column Type to Button Image, ButtonAutoPostBack to True and ButtonImage to the location of the image's directory.
  5. Click OK to apply the settings.
  6. Save and run the project. The ButtonImage column type will look like following:

See Also

©2012 Intersoft Solutions Corp. All Rights Reserved.