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.
thank you very much!
dave
Here's the new reference (for 2010.1):
http://help.infragistics.com/NetAdvantage/WPF/2010.1/CLR3.5/?page=xamData_Terms_Presenters.html
hi, the "Presenters' architecture article" referneces above is missing... would it be possible to repost or post an updated version?
thanks, dave
As I already mentioned, the structure is different. Templating is performed on the fields, rather than the records, but the concept is the same. Just like creating a data template for a row (template for each column), you create a FieldLayout and a CellValuePresenterStyle for each field. UnboundFields also expose a CellValuePresenterStyle property, so it is the same as normal Fields.
Thanks for responding. Just to clarify what I'm trying to achieve here's the image from my spec:
As shown above, instead of using the default grid layout, I need to create a custom layout. I would like to be able to have a template that defines that layout for an entire row. I tried using the CellValuePresenter, but would prefer to style an entire row instead of a single cell at a time. Is that possible (keep in mind I have several UnboundFields).
Thanks!