DataGridView.Item Property (String, 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 with the specified index and the column with the specified name.

Namespace: System.Windows.Forms
Assembly: System.Windows.Forms (in

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

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

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



The name of the column containing the cell.


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