DataGridViewComboBoxCell.ObjectCollection.Add(Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds an item to the list of items for a DataGridViewComboBoxCell.
public:
int Add(System::Object ^ item);
public int Add (object item);
member this.Add : obj -> int
Public Function Add (item As Object) As Integer
Parameters
- item
- Object
An object representing the item to add to the collection.
Returns
The position into which the new element was inserted.
Exceptions
item
is null
.
The cell's DataSource property value is not null
.
The cell is in a shared row.
Applies to
See also
Bekerjasama dengan kami di GitHub
Sumber untuk kandungan ini boleh didapati di GitHub, di mana anda juga boleh mencipta dan menyemak isu dan menarik permintaan. Untuk maklumat lanjut, lihat panduan penyumbang kami.