DataGridViewCellCollection.IList.Remove(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.
Removes the first occurrence of a specific object from the collection.
virtual void System.Collections.IList.Remove(System::Object ^ value) = System::Collections::IList::Remove;
void IList.Remove (object value);
void IList.Remove (object? value);
abstract member System.Collections.IList.Remove : obj -> unit
override this.System.Collections.IList.Remove : obj -> unit
Sub Remove (value As Object) Implements IList.Remove
Parameters
- value
- Object
The DataGridViewCell to remove from the collection.
Implements
Exceptions
value
is not a DataGridViewCell.
The row that owns this DataGridViewCellCollection already belongs to a DataGridView control.
cell
could not be found in the collection.
Remarks
Once you add the row to a control, the number of cells it contains always matches the number of columns in the control, so this method is no longer useful.
This member is an explicit interface member implementation. It can be used only when the DataGridViewCellCollection instance is cast to an IList interface.
Applies to
See also
Feedback
https://aka.ms/ContentUserFeedback.
Binnenkort beschikbaar: In de loop van 2024 zullen we GitHub-problemen geleidelijk uitfaseren als het feedbackmechanisme voor inhoud en deze vervangen door een nieuw feedbacksysteem. Zie voor meer informatie:Feedback verzenden en weergeven voor