Show theme settings Shopping cart Download trialFree Trial
Change Theme Settings
Change Theme Settings
Show All Themes

Focused Row

Drag a column header here to group by that column
First Name 
Last Name 
Birth Date 
Hire Date 
NancyDavolio12/8/1970Sales Representative5/1/2014...X
AndrewFuller2/19/1974Vice President, Sales8/14/2014...X
JanetLeverling8/30/1985Sales Representative4/1/2014...X
MargaretPeacock9/19/1959Sales Representative5/3/2015...X
StevenBuchanan3/4/1977Sales Manager10/17/2015...X
MichaelSuyama7/2/1985Sales Representative10/17/2015...X
RobertKing5/29/1982Sales Representative1/2/2016...X
LauraCallahan1/9/1980Inside Sales Coordinator3/5/2016...X
AnneDodsworth1/27/1988Sales Representative11/15/2016...X

The Focused Row feature is disabled by default. To enable it, set the SettingsBehavior.AllowFocusedRow property to true.

The focused row's appearance can be specified using the style settings provided by the Styles.FocusedRow property.

  • Server Side

    The focused row is identified by the FocusedRowIndex property. Use this property to move row focus in code. Changing this property raises the FocusedRowChanged event.

  • Client Side

    End-users move row focus by clicking the desired rows.

    To respond to a change in row focus, handle the FocusedRowChanged event.

    To identify a row currently being focused, use the GetFocusedRowIndex client method.

This demo shows how to dynamically display a focused employee's photo and details outside the DevExpress ASP.NET Grid View (ASPxGridView).

The FocusedRowChanged event is handled to call the OnGridFocusedRowChanged() function. This function queries the server to return the employee's ID and Notes. The returned array is passed to the OnGetRowValues() function that specifies values for corresponding HTML elements.

Local Copy of this Demo
To inspect the source code for this demo on your machine, you must first install our components via the DevExpress Component Installer.
You can open a local copy of this online demo directly from this webpage (if using v20.2.8, 21.1.4 or higher).
Open CS Solution
Open VB Solution
The source code files for this demo are installed (by default) in the following directories:
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\CS\ASPxGridViewDemos
\Users\Public\Documents\DevExpress Demos XX.X\Components\ASP.NET\VB\ASPxGridViewDemos