AxpDataGrid

AxpDataGrid.EditOptions Property

Controls what type of data updates should be supported

[Visual Basic]
Public Property EditOptions As String
[C#]
public string EditOptions {get; set;}

Property Value

one or more of "all" or "update" or "delete" or "add" or "noview". Default is blank (ie no updates).

Remarks

Set to : "all" to enable update, add and delete.
Set to one or more of "update delete add" to enable individual edit types.

Add the option "noview" if clicking on a grid link should take the user directly to edit form (i.e. the form view is not in use).

You will need to set some properties to enable data editing. Please see the Sample application for full details.


Example taken from Sample3:

ConnectionString="Provider=Microsoft.Jet.OLEDB.4.0;Data Source=C:\Inetpub\wwwroot\axpdb\NWind.mdb" 
SQL="Select * From Products"
DeleteSQL="Delete From Products"
DisplayNavBar="both"
EditOptions="ALL"
EditPrimaryKeys="ProductId"
EditFieldsReadOnly="1"
EditNewPKStatement="autoincrement"

See Also

AxpDataGrid Class | Axezz.WebControls Namespace