Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
virtual void SetItem(
	int index,
	GridViewColumn^ column
) override

Parameters

index
Type: System::Int32

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

column
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
Show:
© 2017 Microsoft