Skip to main content
Tab

ASPxGridBase.BeforePerformDataSelect Event

Occurs before the control obtains data from a data source.

Namespace: DevExpress.Web

Assembly: DevExpress.Web.v24.1.dll

NuGet Package: DevExpress.Web

Declaration

public event EventHandler BeforePerformDataSelect

Event Data

The BeforePerformDataSelect event's data class is EventArgs.

Remarks

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