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)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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
)

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:
© 2018 Microsoft