Skip to main content
A newer version of this page is available. .

EditFormUserControl Class

A custom edit form for the Data Grid control.

Namespace: DevExpress.XtraGrid.Views.Grid

Assembly: DevExpress.XtraGrid.v17.2.dll

Declaration

[ToolboxBitmap(typeof(ToolboxIconsRootNS), "EditFormUserControl")]
[ToolboxTabName("DX.17.2: Data & Analytics")]
public class EditFormUserControl :
    XtraUserControl,
    IExtenderProvider,
    IEditorFormTagProvider

Remarks

You can use a custom user control as an Edit Form. The EditFormUserControl is a base class to create a custom Edit Form.

The EditFormUserControl provides you with the binding mechanism that allows you to bind editors in a custom Edit Form to data in the grid. The EditFormUserControl supports the ProvidePropertyAttribute which provides the BoundPropertyName and BoundFieldName extender properties for editors within the Edit Form.

The BoundFieldName property specifies the field name in the underlying data source to which the editor is bound. The BoundPropertyName specifies the editor’s property to which a field value is assigned on initializing the Edit Form, and from which a value is fetched and posted back to the grid on saving data.

The EditFormUserControl.SetBoundFieldName, EditFormUserControl.GetBoundFieldName, EditFormUserControl.SetBoundPropertyName and EditFormUserControl.GetBoundPropertyName methods are part of the ProvidePropertyAttribute implementation and allow you to get and set the appropriate properties in code.

See the Modify and Validate Cell Values topic to learn more.

See Also