Object Reference > True DBGrid Properties > hWndEditor Property |
Returns the window handle of the grid's editor.
TDBGrid.hWndEditor
Read-only at run time. Not available at design time.
The hWndEditor property returns the unique window handle assigned to a TDBGrid control's editing window by the Microsoft Windows operating environment. Experienced users can pass the value of this property to Windows API calls that require a valid window handle.
When editing is not is progress, this property returns 0.
Note
Since the value of this property can change while a program is running, never store the hWndEditor value in a variable.
Do not use the hWndEditor property to test whether editing is in progress. The EditActive property is provided for this purpose.