Set default value for DataGrid column

We have a custom form that contains a datagrid which is edited inline.
One of the columns in that datagrid is a DateTime that the user can select using a DatePicker.
How can we set the default DateTime to the current Date and Time (no Date is selected by default in the DatePicker).

Hi @BLafrance,

You can specify default values in the insertRow, editRow method calls which are generated by Radzen for an inline editing form.

this.grid0.insertRow({ myProperty: myDefaultValue });

1 Like