Skip to main content

VGridControlBase.RowChanging Event

Fires when changing a row’s property.

Namespace: DevExpress.XtraVerticalGrid

Assembly: DevExpress.XtraVerticalGrid.v24.1.dll

NuGet Packages: DevExpress.Win.Navigation, DevExpress.Win.VerticalGrid


public event RowChangingEventHandler RowChanging

Event Data

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

Property Description
CanChange Gets or sets a value specifying whether the row can be changed.
ChangeType Gets the way in which the row has changed. Inherited from RowChangedEventArgs.
Properties Gets the processed row’s properties. Inherited from RowChangedEventArgs.
PropertyValue Gets or sets the current value of the changed row property.
Row Gets the processed row. Inherited from RowEventArgs.


This example handles the vertical grid’s RowChanging event to prevent users from changing the row height. The example handles the RowChanged event to log row changes (user actions).

WinForms Vertical Grid Control, DevExpress

using DevExpress.XtraEditors;
using DevExpress.XtraVerticalGrid;
using DevExpress.XtraVerticalGrid.Events;

namespace DXApplication28 {
    public partial class Form1 : XtraForm {
        public Form1() {
            vGridControl1.RowChanging += VGridControl1_RowChanging;
            vGridControl1.RowChanged += VGridControl1_RowChanged;

        void VGridControl1_RowChanged(object sender, RowChangedEventArgs e) {
            listBoxControl1.Items.Add(string.Format("Change type: {0}", e.ChangeType));

        void VGridControl1_RowChanging(object sender, RowChangingEventArgs e) {
            e.CanChange = e.ChangeType != RowChangeTypeEnum.Height;
See Also