I have a XamDataGrid that has several UnboundFields. I would like to create a DataTemplate that controls the layout of the fields for each row in the XamDataGrid. I would like to define the DataTemplate as a resource and assign it to the XamDataGrid as an ItemTemplate.
I am unable to find an ItemTemplate attribute on the XamDataGrid. Does one exist? Also, is it possible to use a DataTemplate to define a row?
Thanks in advance.
Hello,
The structure of the XamDataGrid is slightly different that the built-in content controls in respect of using DataTemplates.
You can look at this Presenters' architecture article for the XamDataGrid, which are the equivalent of the ItemTemplate to some extent. Probably retemplating the CellValuePresenter would be the one you are looking for and assigning that style to the CellValuePresenterStyle property of a specific field.
An example of this, you can see in the XamFeatureBrowser, which is installed together with our products and find samples under XamDataGrid - Themes and Custom Styles.
Hope this helps
hi, the "Presenters' architecture article" referneces above is missing... would it be possible to repost or post an updated version?
thanks, dave
Here's the new reference (for 2010.1):
http://help.infragistics.com/NetAdvantage/WPF/2010.1/CLR3.5/?page=xamData_Terms_Presenters.html
thank you very much!
dave