ComponentOne True DBGrid for WinForms
Cell Editing Techniques / How Cell Editing Works / Determining Modification Status
In This Topic
    Determining Modification Status
    In This Topic

    While editing is in progress, inspect the DataChanged property of the grid to determine whether the user has made any changes to the current row.

    Set the grid's DataChanged property to False to exit editing, discard all changes to the current row, and refresh the current row display from the data source.

    The icon in the record selector column of the current row reflects the status of the grid's DataChanged property. If DataChanged is False, a triangle-shaped arrow will be shown in the record selector column. If DataChanged is True, a pencil icon will appear instead.