Skip to main content

ASPxGridBase.BeforePerformDataSelect Event

Occurs before the control obtains data from a data source.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v22.2.dll

NuGet Package: DevExpress.Web


public event EventHandler BeforePerformDataSelect

Event Data

The BeforePerformDataSelect event's data class is EventArgs.


ASPxGridView-Specific Information

When implementing master-detail mode, the BeforePerformDataSelect event should be handled to specify session values.

View Example: Grid View for ASP.NET Web Forms - Simple master-detail implementation

using DevExpress.Web.ASPxGridView;

protected void detailGrid_BeforePerformDataSelect(object sender, EventArgs e) {
    Session["CategoryID"] = (sender as ASPxGridView).GetMasterRowKeyValue();

To learn more, see Master-Detail: Implementation.

Grid View - Get Started

See Also