AxpDataGrid

AxpDataGrid.CopyFields Property

A string containing either '*" for all fields, the empty string to disable copying of data records or a comma separated list of field names.

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

Property Value

A string containing either '*" for all fields, the empty string to disable copying of data records or a comma separated list of field names.

Remarks

To enable Copying, set a value for this property and also make sure that EditOptions include ADD.

A Copy Button will be visible in Form View and Edit mode when Copying is enabled.
When user clicks the button, data fields in the CopyFields property is copied from the current record to a new Edit Form (but not saved to the database at this stage). Primary Key Fields are never copied. The record will be stored to the database when user clicks the Save button.

Set CopyFields="*" to copy all data columns from one record to another.
Set CopyFields to a comma separated list of column names to only include these fields when copying.

See Also

AxpDataGrid Class | Axezz.WebControls Namespace