hWndEditor Property

       

Returns the unique window handle assigned to a DataGrid control's editing window by the Microsoft Windows operating environment. Not available at design time.

Syntax

object.hWndEditor

The hWndEditor property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.

Remarks

Experienced users can pass the value of this property to Windows API calls that require a valid window handle.

When editing is not in 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. Also, do not use the hWndEditor property to test whether editing is in progress. The EditActive property is provided for this purpose.