DbNetEdit

Top  Previous  Next

The DbNetEdit control is a database aware form control that is designed to make it easy to maintain database records inside a browser.

 

Example code

 

Basic Properties

The simplest edit control can be created by specifying just the ConnectionString and FromPart properties

ConnectionString

The ConnectionString property provides the information necessary to connect to the database. The connection string can either be an actual connection string or an alias which is resolved by finding a matching entry in the <connectionStrings> section of the web.config file. For details of specifying connection strings see the database connectivity section.

FromPart

The FromPart property specifies the name of the table against which the form will be applied.

Run Sample

Columns

The Columns collection allows you to specify the columns that you require from the table(s) and or view(s) specified in the FromPart property

Run Sample

Additional Properties

FixedFilter

Specifies a filter to be applied to the selected edit fields.

 

FixedFilterParameters

Used in combination with the FixedFilter parameter to supply parameter values.

Run Sample

Height

Set the height of the edit control where the edit fields are automatically generated.

Run Sample

InitialOrderBy

Set the initial order by which rows are returned.

Run Sample

 

ParentControlID

This property is assigned to a child control and specifies the ID of the parent DbNetGrid or DbNetEdit control

Run Sample

SearchDialogHeight

Fixes the height of the search dialog when there are a lot of searchable columns. Search fields will scroll inside dialog

Run Sample

Toolbar Properties

The following properties control the buttons and information displayed in the toolbar

Run Sample

 

Delete

Controls the appearance of the Delete record button in the toolbar

 

Insert

Controls the appearance of the insert new record button in the toolbar

 

Navigation

Controls the appearance of the navigation buttons in the toolbar

 

PageInfo

Controls the appearance of the Page X of Y information in the toolbar

 

Search

Controls the appearance of the search dialog button in the toolbar