dotnetmonitor.com

 
Index
Previous
Next

 

The following list identifies different DataErrorContexts and provides more detail into when a certain context might occur

DataErrorContext

When it might occur

Formatting

When attempting to retrieve the cell's formatted value.

Display

When attempting to paint the cell or calculate the cell's tooltiptext. Note that these operations usually also require getting the cell's formatted value, so the error context is OR'd together.

PreferredSize

When calculating the preferred size of a cell. This
usually also requires getting the cell's formatted value also.

RowDeletion

Any exception raised when deleting a row.

Parsing

When exceptions occur when committing, ending or canceling an edit. Usually OR'd in with other error contexts

Commit

When exceptions occur when committing an edit. Usually OR'd with other error contexts

InitialValueRestoration

When exceptions occur while either initializing the editing control/cell's value, or Canceling an edit

LeaveControl

When exceptions occur while attempting to validate grid data when the grid is losing focus. Usually OR'd with other error contexts.

CurrentCellChange

When exceptions occur while validating\updating\committing\getting cell content when the current cell changes. Usually OR'd with other error contexts.

Scroll

When exceptions occur while validating\updating\committing\getting cell content when the current cell changes as a result of scrolling.

ClipboardContent

When exceptions occur while attempting to get the formatted value of a cell while creating the clipboard content.

What is the DataGridView
Differences between the DataGridView and DataGrid controls
Highlight of features
Structure of DGV
Architecture Elements
Cells and Bands