Generating Fields Manually Versus Automatically

Glossary Item Box

Infragistics(R) NetAdvantage(R) for WPF

Generating Fields Manually Versus Automatically

The xamDataGrid™, xamDataCarousel™, and xamDataPresenter™ controls provide two ways to define Fields:

With either option you can still define UnboundFields. You can also work with the FieldLayout to control the Fields shown, and the order in which you want to show them. For more information, see Fields.

Automatic

In the case that you leave AutoGenerateFields equal to True, the control scans the bound data source and generates the appropriate Fields for each public property in the data source. Fields are automatically included in a Field collection as they are created.

Manual

In the case that you set AutoGenerateFields equal to False, you have to define the Fields and the FieldLayouts that contain the Fields. The following pseudo code shows how to set this property for the xamDataGrid. It would be similar for the xamDataCarousel, and xamDataPresenter.

In XAML:

...
	<igDP:XamDataGrid.FieldLayoutSettings>
		<igDP:FieldLayoutSettings AutoGenerateFields="False" />
	</igDP:XamDataGrid.FieldLayoutSettings>
...

E-mail your feedback on this topic.

Opinion about our help? Take our survey.

Copyright © 2003-2007 Infragistics, Inc. All rights reserved.

Build Version: 7.1.20071.1320