Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
920
display button images instead of ints
posted

Hi I have a relatively simple need.

I'm binding data to a grid and in one column I'm binding an int that is either a 0, 1, or 2.

When this grid is displayed I want a button to show up instead of an int and the button will show a different picture either a padlock for 2 or a stopwatch for 1 etc.

Just wondering what the key steps are to doing this.  Where do I assign an Image to the button based on the bound underlying int.  

Parents
No Data
Reply
  • 920
    posted

    I also need the buttons to look a lot more presentable...do I just mess with the appearance values.  is there anyway to get some preconfigured buttons...it seems it just fills the whole cell with a button...

    Also, how do I tie a generic event up to the button that will give me control and the underlying int value when clicked.

Children