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.
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.
Hi,
I you have three possible options, then a button doesn't really make sense, does it?
I think a dropdown would be better than a button. There's a sample of exactly what you are describing here using a ValueList:
http://community.infragistics.com/forums/p/17549/63689.aspx#63689
If you'd really use a button, then I'm not sure how that would work. I guess each click of the button would cycle the value to the next value and then wrap around from the beginning? That would be trickier to implement.