Back to Devexpress

MasterRowCanExpandEventArgs Class

windowsforms-devexpress-dot-xtragrid-dot-views-dot-grid-57aa44af.md

latest2.7 KB
Original Source

MasterRowCanExpandEventArgs Class

Provides data for the GridView.MasterRowExpanding and GridView.MasterRowCollapsing events.

Namespace : DevExpress.XtraGrid.Views.Grid

Assembly : DevExpress.XtraGrid.v25.2.dll

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

Declaration

csharp
public class MasterRowCanExpandEventArgs :
    CustomMasterRowEventArgs
vb
Public Class MasterRowCanExpandEventArgs
    Inherits CustomMasterRowEventArgs

MasterRowCanExpandEventArgs is the data class for the following events:

Remarks

The GridView.MasterRowExpanding and GridView.MasterRowCollapsing events fire when attempting to expand or collapse a master row. MasterRowCanExpandEventArgs class properties allow you to identify the master row whose expanded state is about to be changed and the relation index specifying which detail’s visible state is affected. You can analyze these values to specify whether the action is allowed. To prohibit changing the master row’s expanding state, set the MasterRowCanExpandEventArgs.Allow property to false.

Inheritance

Object EventArgs CustomMasterRowEventArgs MasterRowCanExpandEventArgs

See Also

MasterRowCanExpandEventArgs Members

MasterRowExpanding

MasterRowCollapsing

DevExpress.XtraGrid.Views.Grid Namespace