Change Theme Settings
Change Theme Settings
Themes
 
Show All Themes
v
...v

Binding to a Data Source

v
Personal Information
v
Work Information
v
Update Record

This demo illustrates how the ASPxFormLayout control can be used to edit fields of a data source.

In this demo, the edited data is specified via the ASPxFormLayout.DataSourceID property value in the markup.

The ASPxFormLayout layout items are gathered in the Items collection and are bound to data source fields using the LayoutItem.FieldName property. Each layout item contains a DevExpress data editor that allows editing corresponding field type values.

When the edit form is submitted to the server, the edited record is updated via the SqlDataSource.Update method.