Wednesday, February 4, 2015

use images for buttons in a DevExpress grid

I refactored this:

<dx:GridViewCommandColumn Caption="Edit" ButtonType="Image" VisibleIndex="11">
   <EditButton Visible="True" />
   <UpdateButton Visible="True" />
   <CancelButton Visible="True" />
</dx:GridViewCommandColumn>

 
 

...to this:

<dx:GridViewCommandColumn Caption="Edit" ButtonType="Image" VisibleIndex="11">
   <EditButton Visible="True">
      <Image Url="/Images/foo.png" />
   </EditButton>
   <UpdateButton Visible="True">
      <Image Url="/Images/bar.png" />
   </UpdateButton>
   <CancelButton Visible="True">
      <Image Url="/Images/baz.png" />
   </CancelButton>
</dx:GridViewCommandColumn>

No comments:

Post a Comment