DataGridViewCellCollection.Item[] Özellik
Tanım
Belirtilen konumdaki öğeyi alır veya ayarlar.Gets or sets the item at the provided location. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class.
Aşırı Yüklemeler
Item[Int32] |
Belirtilen dizin konumundaki hücreyi alır veya ayarlar.Gets or sets the cell at the provided index location. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class. |
Item[String] |
Sütundaki hücreyi, belirtilen ada sahip olarak alır veya ayarlar.Gets or sets the cell in the column with the provided name. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class. |
Item[Int32]
Belirtilen dizin konumundaki hücreyi alır veya ayarlar.Gets or sets the cell at the provided index location. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class.
public:
property System::Windows::Forms::DataGridViewCell ^ default[int] { System::Windows::Forms::DataGridViewCell ^ get(int index); void set(int index, System::Windows::Forms::DataGridViewCell ^ value); };
public System.Windows.Forms.DataGridViewCell this[int index] { get; set; }
member this.Item(int) : System.Windows.Forms.DataGridViewCell with get, set
Default Public Property Item(index As Integer) As DataGridViewCell
Parametreler
- index
- Int32
Alınacak veya ayarlanacak hücrenin sıfır tabanlı dizini.The zero-based index of the cell to get or set.
Özellik Değeri
DataGridViewCellBelirtilen dizinde depolandı.The DataGridViewCell stored at the given index.
Özel durumlar
Bu özellik ayarlanırken belirtilen değer null
.The specified value when setting this property is null
.
Bu özellik ayarlanırken belirtilen hücre zaten bir DataGridView denetime aittir.The specified cell when setting this property already belongs to a DataGridView control.
-veya--or- Bu özellik ayarlanırken belirtilen hücre zaten bir DataGridViewRow .The specified cell when setting this property already belongs to a DataGridViewRow.
index
0 ' dan küçük.index
is less than 0.
-veya--or-
index
Koleksiyondaki hücre sayısına eşit veya ondan daha büyük.index
is equal to or greater than the number of cells in the collection.
Ayrıca bkz.
Şunlara uygulanır
Item[String]
Sütundaki hücreyi, belirtilen ada sahip olarak alır veya ayarlar.Gets or sets the cell in the column with the provided name. C# ' de, bu özellik, sınıfının Dizin oluşturucudır DataGridViewCellCollection .In C#, this property is the indexer for the DataGridViewCellCollection class.
public:
property System::Windows::Forms::DataGridViewCell ^ default[System::String ^] { System::Windows::Forms::DataGridViewCell ^ get(System::String ^ columnName); void set(System::String ^ columnName, System::Windows::Forms::DataGridViewCell ^ value); };
public System.Windows.Forms.DataGridViewCell this[string columnName] { get; set; }
member this.Item(string) : System.Windows.Forms.DataGridViewCell with get, set
Default Public Property Item(columnName As String) As DataGridViewCell
Parametreler
- columnName
- String
Hücrenin alınacağı veya ayarlanacağı sütunun adı.The name of the column in which to get or set the cell.
Özellik Değeri
DataGridViewCellBelirtilen ada sahip sütunda depolanır.The DataGridViewCell stored in the column with the given name.
Özel durumlar
columnName
denetimdeki sütunların adıyla eşleşmez.columnName
does not match the name of any columns in the control.
Bu özellik ayarlanırken belirtilen değer null
.The specified value when setting this property is null
.
Bu özellik ayarlanırken belirtilen hücre zaten bir DataGridView denetime aittir.The specified cell when setting this property already belongs to a DataGridView control.
-veya--or- Bu özellik ayarlanırken belirtilen hücre zaten bir DataGridViewRow .The specified cell when setting this property already belongs to a DataGridViewRow.