SetItem Method

GridViewColumnCollection.SetItem Method (Int32, GridViewColumn)


Replaces the GridViewColumn that is at the specified index with another GridViewColumn.

Namespace:   System.Windows.Controls
Assembly:  PresentationFramework (in PresentationFramework.dll)

protected override void SetItem(
	int index,
	GridViewColumn column


Type: System.Int32

The position at which the new GridViewColumn replaces the old GridViewColumn.

Type: System.Windows.Controls.GridViewColumn

The GridViewColumn to place at the specified position.

This method replaces a column in the GridViewColumnCollection with a new column. To insert a new column without replacing another column, use the InsertItem method.

.NET Framework
Available since 3.0
Return to top
© 2015 Microsoft