Breyta

Deila með


DataGridView.EndEdit Method

Definition

Commits and ends the edit operation on the current cell.

Overloads

EndEdit()

Commits and ends the edit operation on the current cell using the default error context.

EndEdit(DataGridViewDataErrorContexts)

Commits and ends the edit operation on the current cell using the specified error context.

EndEdit()

Source:
DataGridView.Methods.cs
Source:
DataGridView.Methods.cs
Source:
DataGridView.Methods.cs

Commits and ends the edit operation on the current cell using the default error context.

public:
 bool EndEdit();
public bool EndEdit ();
member this.EndEdit : unit -> bool
Public Function EndEdit () As Boolean

Returns

true if the edit operation is committed and ended; otherwise, false.

Exceptions

The cell value could not be committed and either there is no handler for the DataError event or the handler has set the ThrowException property to true.

Remarks

This method calls the EndEdit overload, passing in a bitwise combination of the Parsing and Commit values.

This method raises the CellEndEdit event.

This method may result in an exception if errors are not handled with the DataError event.

See also

Applies to

EndEdit(DataGridViewDataErrorContexts)

Source:
DataGridView.Methods.cs
Source:
DataGridView.Methods.cs
Source:
DataGridView.Methods.cs

Commits and ends the edit operation on the current cell using the specified error context.

public:
 bool EndEdit(System::Windows::Forms::DataGridViewDataErrorContexts context);
public bool EndEdit (System.Windows.Forms.DataGridViewDataErrorContexts context);
member this.EndEdit : System.Windows.Forms.DataGridViewDataErrorContexts -> bool
Public Function EndEdit (context As DataGridViewDataErrorContexts) As Boolean

Parameters

context
DataGridViewDataErrorContexts

A bitwise combination of DataGridViewDataErrorContexts values that specifies the context in which an error can occur.

Returns

true if the edit operation is committed and ended; otherwise, false.

Exceptions

The cell value could not be committed and either there is no handler for the DataError event or the handler has set the ThrowException property to true.

Remarks

This method raises the CellEndEdit event.

This method may result in an exception if errors are not handled with the DataError event.

See also

Applies to