Hai all...
I have a wpf datagrid with 5 columns let's say...the fifth column is a datagrid template column where i have attached a image in it....In that image previewmousekey up event i have coded to open an another form..My issue is in the save button of other form i want to change the image of the datagrid 5 th column...where i clicked....
Something like a noteicon...where note not present image will be displayed in datagris 5th column...when i click it it will open a small note enter text form where i will write the note for it ..when i save it the image should change to note present image...
Thanks in advance......
Loading
Marcel HertelPosted Aug 8, 2010, 1:37 PM
you can use a ValueConverter in combination with the Datacontext of the grid. Assume that you have bound the itemssource of the Datgrid to a collection of Objects. Extend your Object to a bool property "ItemHasNote". Now you can bind the ImageSource to the Item and use the ValueConverter to show the right Image in dependence of "ItemHasNote".
I hope this helps