Skip to main content

DevExpress v24.2 Update — Your Feedback Matters

Our What's New in v24.2 webpage includes product-specific surveys. Your response to our survey questions will help us measure product satisfaction for features released in this major update and help us refine our plans for our next major release.

Take the survey Not interested

RowChangedEventArgs Class

Contains data for the VGridControlBase.RowChanged event.

Namespace: DevExpress.XtraVerticalGrid.Events

Assembly: DevExpress.XtraVerticalGrid.v24.2.dll

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

#Declaration

public class RowChangedEventArgs :
    RowEventArgs

#Remarks

The VGridControlBase.RowChanged event fires after a row has been changed. Use the e.Row event parameter to identify the modified row.

The e.ChangeType event parameter allows you to identify how the row was changed.

Use the e.Properties event parameter to access row properties.

RowChangedEventArgs objects are created automatically and passed to VGridControlBase.RowChanged event handlers.

#Example

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).

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

namespace DXApplication28 {
    public partial class Form1 : XtraForm {
        public Form1() {
            InitializeComponent();
            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;
        }
    }
}

#Inheritance

See Also