Export (0) Print
Expand All

DataGridView.Item Property (Int32, Int32)

Note: This property is new in the .NET Framework version 2.0.

Gets or sets the cell located at the intersection of the row and column with the specified indexes.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in system.windows.forms.dll)

public DataGridViewCell this [
	int columnIndex,
	int rowIndex
] { get; set; }
/** @property */
public DataGridViewCell get_Item (int columnIndex, int rowIndex)

/** @property */
public void set_Item (int columnIndex, int rowIndex, DataGridViewCell value)

JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

columnIndex

The index of the column containing the cell.

rowIndex

The index of the row containing the cell.

Property Value

The DataGridViewCell at the specified location.

This indexer is an alternative to accessing cells through the Cells collection of the Rows collection.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see System Requirements.

.NET Framework

Supported in: 2.0

Community Additions

ADD
Show:
© 2014 Microsoft