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
)
protected void SetItem (
	int index, 
	GridViewColumn column
)
protected override function SetItem (
	index : int, 
	column : GridViewColumn
)
You cannot use methods in XAML.

Parameters

index

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

column

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.

Windows 98, Windows Server 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0

Community Additions

ADD
Show: