'宣言 Public Event CellChanged As RowColEventHandler
public event RowColEventHandler CellChanged
イベント ハンドラが、このイベントに関連するデータを含む、RowColEventArgs 型の引数を受け取りました。次の RowColEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Cancel | Gets or sets a value indicating whether the operation should be canceled. |
Col | Gets the index of the column that caused the event. |
Row | Gets the index of the row that caused the event. |
This event allows you to perform processing whenever the contents of a cell change by typing data in a cell or assigning data throught code.
This event does not fire if the data was changed in database.
This event can be used to provide conditional formatting and dynamic data summaries, which get updated automatically whenever the data changes.
This event fires in bound and unbound modes. In some bound more scenarios, the data source object may inform the grid that some data in the current row changed, without specifying which column changed. In this case, the Col parameter will be set to -1. Event handlers should be prepared to handle this situation without throwing exceptions.