Hello All,
1) I want to show Image & some text in one column of xamdatagrid.
2) Also I need to Merge two columns in XAMData grid?
If anyone has implemented this, Please let me know along with some sample code.
Thanks in advance.
Pradeep
Hello Elena,
Thanks for your reply.
In previous post you have given sample code for the displaying image + text in xamgrid column.
Now,I need to sort that column by the text of the same column.
Can you please provide the solution for the same.
Thanks,
Hello Pradeep,
I am just checking have you been able to resolve your issue? If you still need any assistance on the matter do not hesitate to ask.
I have created a small sample for you where I retempleate one of the fields to show image along with some data. In my concrete example I use converter to determine which image to be shown depending if any data is available for the cell. In my sample I use as XamDataGrid’s data source Northwind database.
If you need any further assistance on this matter please do not hesitate to contact me.
I want to show images in the grid column with text from database.
Can you please create some sort of sample for the same because i tried but was not succeded in it.
I will appriciate if you send some sample.
Thanks in advance,
I have been looking into your question and I can suggest you have a look at our feature browser under the section XamDataGrid->Themes andCustom Styles-> Custom CellValuePresenter Style-advanced. There you can find code and preview how you can set both picture and text in one column of XamDataGrid creating new template for the CellValuePresenter and assigning the style for the field. Also you can check our online documentation on this matter:
http://help.infragistics.com/Help/NetAdvantage/WPF/2011.2/CLR4.0/html/xamDataPresenter_Displaying_an_Image_in_a_Field.html
Regarding your second question I can point you to the section XamDataGrid->Layout and Behavior-> Record Layout Customization in our feature browser, where is shown the layout customization functionality that can help you achieve the design that you require. Furthermore you can test by yourself the sample that Sandeep provides in the following forum thread:
http://forums.infragistics.com/forums/p/20411/73992.aspx#73992
Please let me know if you need any further assistance on this matter.