Not logged in - Login

Add Focused Row to ASPxGridView Grid

To add a focused row to the grid, do the following:

  • Set the 'SettingsBehavior.AllowFocusedRow' property of the grid to 'true'.
  • Set the 'KeyFieldName' property of the grid. It needs to be set to a field that exists in the data source that is unique.

The HTML will look something like the following:

<dxwgv:ASPxGridView ID="grdTest" runat="server" AutoGenerateColumns="False" KeyFieldName="lRowID">
<SettingsBehavior AllowFocusedRow="True" />