'宣言 Public Event KeyPressEdit As KeyPressEditEventHandler
public event KeyPressEditEventHandler KeyPressEdit
イベント データ
イベント ハンドラが、このイベントに関連するデータを含む、KeyPressEditEventArgs 型の引数を受け取りました。次の KeyPressEditEventArgs プロパティには、このイベントの固有の情報が記載されます。
プロパティ | 解説 |
---|---|
Col | Gets the column index of the cell being edited when the key was pressed. |
Handled | Gets or sets a value indicating whether the event was handled and should be ignored by the control. |
KeyChar | Gets the character corresponding to the key pressed. |
Row | Gets the row index of the cell being edited when the key was pressed. |
解説
The KeyPressEdit event corresponds to the System.Windows.Forms.Control.KeyPress event, except it fires when the grid is in edit mode (in this case, the control that receives the key is the editor, not the grid itself).
The editor has three modes: text, drop-down combo, or drop-down list. The mode used is determined by the ComboList properties in the grid and column objects.
While editing with the text editor or with a drop-down combo, you may set or retrieve the contents of the editor by retrieving the editor control with the Editor property and casting it to the proper type.
参照