Xceed DataGrid for Silverlight Documentation
AutoCreateColumns Property


Gets or sets a value indicating whether columns are automatically created from the fields in the data source to which a grid is bound.
Syntax
'Declaration
 
Public Property AutoCreateColumns As Boolean
'Usage
 
Dim instance As DataGridControl
Dim value As Boolean
 
instance.AutoCreateColumns = value
 
value = instance.AutoCreateColumns
public bool AutoCreateColumns {get; set;}

Property Value

true if columns are automatically created; false otherwise. By default, true.
Remarks
Setting the grid's AutoCreateColumns property to false will prevent the automatic creation of columns and will require that the desired columns be added manually to the Columns collection. In the case where the AutoCreateColumns property is left to its default value and columns are manually defined in the Columns collection, the manually defined columns will appear first and they will be linked or "merged" with their automatically created equivalent.
Requirements

Target Platforms: Windows 7, Windows Vista, Windows XP SP3, Windows Server 2008 family

See Also

Reference

DataGridControl Class
DataGridControl Members

Send Feedback