Back to Devexpress

ASPxVerticalGrid.InitNewRecord Event

aspnet-devexpress-dot-web-dot-aspxverticalgrid-fadcbdee.md

latest1.8 KB
Original Source

ASPxVerticalGrid.InitNewRecord Event

Enables you to initialize added records.

Namespace : DevExpress.Web

Assembly : DevExpress.Web.v25.2.dll

NuGet Package : DevExpress.Web

Declaration

csharp
public event ASPxDataInitNewRowEventHandler InitNewRecord
vb
Public Event InitNewRecord As ASPxDataInitNewRowEventHandler

Event Data

The InitNewRecord event's data class is ASPxDataInitNewRowEventArgs. The following properties provide information specific to this event:

PropertyDescription
NewValuesGets a dictionary that contains the new field name/value pairs for the new row.

Remarks

The InitNewRecord event is raised when a new record is added to the ASPxVerticalGrid. This occurs when:

  • the AddNewRecord method is called;
  • an end-user has clicked on the New command button.

Use the event parameter’s NewValues property to specify the values in the new record. To specify values of hidden rows, handle the ASPxVerticalGrid.RecordInserting event.

See Also

Vertical Grid

ASPxVerticalGrid Class

ASPxVerticalGrid Members

DevExpress.Web Namespace