Free Trial Buy Now

Grid Rows - Focused Row

Drag a column header here to group by that column
First Name
Last Name
Birth Date
Title
Hire Date
NancyDavolio12/8/1948Sales Representative5/1/1992
AndrewFuller2/19/1952Vice President, Sales8/14/1992
JanetLeverling8/30/1963Sales Representative4/1/1992
MargaretPeacock9/19/1937Sales Representative5/3/1993
StevenBuchanan3/4/1955Sales Manager10/17/1993
MichaelSuyama7/2/1963Sales Representative10/17/1993
RobertKing5/29/1960Sales Representative1/2/1994
LauraCallahan1/9/1958Inside Sales Coordinator3/5/1994
AnneDodsworth1/27/1966Sales Representative11/15/1994

Description

By default, our Focused Row feature is disabled. 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 rows they desire.

To respond to a change in row focus, handle the ASPxClientGridView.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 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.

Version: v2012 vol 2.8
Experience the DevExpress Difference Today
Demos with source code are included with an installation of DevExpress controls for ASP.NET. Refer to the Demos and Sample Applications topic to learn more.
To download your free evaluation copy of our award-winning ASP.NET libraries, visit the Downloads page
All DevExpress ASP.NET Controls ship as part of DXperience ASP.NET, Enterprise, and Universal.
To obtain pricing information, visit the Pricing Options page or contact us via Email at info@devexpress.com
or by telephone at +1 (818) 844-3383 between 8:30am and 5pm Pacific Time.