User Control Combo Box Editing ControlOn Key Press Method
This is overridden to notify the data grid view of value changes on the first key press
Definition
Namespace: EWSoftware.ListControls.DataGridViewControls
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
Assembly: EWSoftware.ListControls (in EWSoftware.ListControls.dll) Version: 2024.12.31.0
C#
protected override void OnKeyPress(
KeyPressEventArgs e
)VB
Protected Overrides Sub OnKeyPress (
e As KeyPressEventArgs
)C++
protected:
virtual void OnKeyPress(
KeyPressEventArgs^ e
) overrideF#
abstract OnKeyPress :
e : KeyPressEventArgs -> unit
override OnKeyPress :
e : KeyPressEventArgs -> unit Parameters
- e KeyPressEventArgs
- The event arguments
Remarks
If the first key auto-completes the default entry, it won't see the change so we must force
it.