ASPxGridView.FocusedRowChanged Event
Fires after the focused row has been changed.
Namespace: DevExpress.Web
Assembly: DevExpress.Web.v19.2.dll
Declaration
Event Data
The FocusedRowChanged event's data class is EventArgs.
Remarks
The FocusedRowChanged event is raised when an end-user moves focus from one row to another or after the ASPxGridView.FocusedRowIndex property’s value has been changed in code.
If the ASPxGridViewBehaviorSettings.ProcessFocusedRowChangedOnServer property is set to false, the ASPxClientGridView.FocusedRowChanged event is handled on the client side without a callback to the server. Setting this property to true indicates that the final processing of the event should be performed on the server side, and so a round trip to the server is required. During such a round trip, the corresponding server-side FocusedRowChanged event is fired, which if handled, allows any desired server-side action to be performed.
Concept
Example
<dx:ASPxGridView ID="gv" runat="server" AutoGenerateColumns="False" DataSourceID="ads"
KeyFieldName="CategoryID" OnFocusedRowChanged="gv_FocusedRowChanged">
<Settings ShowFooter="true" />
<SettingsBehavior AllowFocusedRow="true" ProcessFocusedRowChangedOnServer="true" />
<Columns>
...
</Columns>
<Templates>
<FooterRow>
<dx:ASPxLabel ID="lbl" runat="server" Text="">
</dx:ASPxLabel>
</FooterRow>
</Templates>
</dx:ASPxGridView>