Hi,
I have created a collection and binded to Xamdatagrid.
I used Editor type as Xamtexteditor for each field..and i created fields in code behind.
Now i want to add Border, Text and Image in the cell..
How can i achieve this...
Please help me..
Thanks,
Chandra
Could you please Any one can look into my issue...
Thanks in advance..
Regards,
Hello Chandra,
Thank you for your post. I have been looking into it and have created a small sample for you. In the sample I use the default style for the CellValuePresenter. There is already a border and ContentPresenter in the style. I added an image right after the ContentPresenter.
Please find the attached sample and feel free to let me know if you have any further questions on the matter.
I am just checking your progress on the issue. Please do not hesitate to let me know if you have any further questions on the matter.
Thanks for your help.
But i want to know like, How can i achieve the same thing by dynamically and i need to apply the border color and image for specfic cell depends on dynamic data.
In my case, I am binding datatable to xamdatagrid.
updating the datatable columns with one collection and rows with another collection.
so depends on row data,we need to display the cell with border and image.
Could you please help me to resolve the issue.
Hi Gergana,
Thanks in advance,
I am sorry for the late replay. I have been working on a sample for you, named DataValueChanged. In the new sample I have two style for the CellValuePresenter that change according to the value of the cell. To accomplish this scenario I am handling the DataValueChanged event. In this event I check if the new value in the cell is smaller than the previous one the border of the cell is red and if the value is bigger the border gets green and the picture in the cell changes.
Please refer to the attached sample and feel free to let me know if you have any further questions on the matter.