MasterRowCanExpandEventArgs Class
Provides data for the GridView.MasterRowExpanding and GridView.MasterRowCollapsing events.
Namespace: DevExpress.XtraGrid.Views.Grid
Assembly: DevExpress.XtraGrid.v17.2.dll
Declaration
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.
Related GitHub Examples
The following code snippet (auto-collected from DevExpress Examples) contains a reference to the MasterRowCanExpandEventArgs class.
Note
The algorithm used to collect these code examples remains a work in progress. Accordingly, the links and snippets below may produce inaccurate results. If you encounter an issue with code examples below, please use the feedback form on this page to report the issue.