Hi, Just wondering if anyone knows if it is possible to intergrate a XamDataChart within a XamDataGrid Cell, as i want to show a preview of the data. ive looked online but cannot find any answers. Thanks.
Hello GSchaller,
Thank you for your post.
To place a XamDataChart within a XamDataGrid cell, I would recommend usage of a TemplateField in your grid. You can read about configuring a TemplateField here: http://www.infragistics.com/help/wpf/xamdatagrid_configuring_template_field.html.
The TemplateField allows you to place essentially anything inside of your XamDataGrid cells for that particular field. If you were to have a property on your underlying data item with all of the information that you would need for a particular chart that you would like to place in your grid, you could simply place the XamDataChart inside of a custom TemplateField DisplayTemplate and bind it normally.
I have attached a sample project that demonstrates this. I hope it helps you.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate Developer
Thanks Andrew, the step we were missing with using TemplateField.
It has been an interesting journey moving from WinForms to WPF so this will be very useful. The challenge was to use grids to hold controls and groups of controls so that the grid can be used to control a matrix column/row layout with minimal additional coding. The trick was to work out how to bind a grid or graph within a grid cell. This will help heaps but I am certain we'll be back with more questions after the weekend as we implement this. :)
Thanks Again.
Geoff
Software Objectives
Hello Geoff,
I am glad that the Template Field in the XamDataGrid is helping you to achieve this multiple control in a grid type of functionality that you are looking to achieve. If you have any additional questions on this matter, please let me know.