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
2549
Adding Button (select image) to Field with bound DataTable and byte[] data
posted

Hi all,

I am currently trying to archive something that I was used to do with the UltraWinGrid before.

Basically I have a DataTable that contains a BitmapImage column which is bound to a xamDataPresenter.

As expected the image is shown, even with the correct size which I have set right after the FieldLayoutInitialized event fired.

What I want to see in the cell is the image (24x24) a little space and a little button that allows me to fire a "select image" dialog.

Problem here is that the DataTable is generated in code and the columns may change all the time, so I have to do that in code.

Could anybody please point out how to archive this?
Any help is kindly appreciated,

best regards

Andy

Parents
No Data
Reply
  • 138253
    Offline posted

    Hello,

     

    It has been a while since you have made your post, in case you still need support I will be glad to assist you further. I suppose the other community members can benefit from this answer as well. So I have been looking through your post and I created a sample project for you. I basically create a Style for the CellValuePresenter, in which I set the ContentTemplate property properly, so that it has an Image and a Button as you want.

     

    Feel free to write me if you have further questions.

    xamDataGridFieldWithImage.zip
Children
No Data