Hi Andrew
I tried the approach you suggested but the focusedrowchanged event fires only once at startup (and with focusedrowindex = -1).
I disabled EnableCallbacks and defined an event server side attached to the focusedrowchanged.
Here is my markup:
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="TestDesignTime.aspx.cs" Inherits="TestDesignTime" %>
<%@ Register Assembly="DevExpress.Web.ASPxGridView.v7.2, Version=7.2.1.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
Namespace="DevExpress.Web.ASPxGridView" TagPrefix="dxwgv" %>
<%@ Register Assembly="DevExpress.Web.ASPxEditors.v7.2, Version=7.2.1.0, Culture=neutral, PublicKeyToken=9b171c9fd64da1d1"
Namespace="DevExpress.Web.ASPxEditors" TagPrefix="dxe" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>Untitled Page</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<dxwgv:aspxgridview id="GrdMain" runat="server" autogeneratecolumns="False" datasourceid="DtsTabCdc"
keyfieldname="ID" style="z-index: 100; left: 18px; position: absolute; top: 44px" OnCustomCallback="GrdMain_CustomCallback" EnableCallBacks="False" OnFocusedRowChanged="GrdMain_FocusedRowChanged"><Columns>
<dxwgv:GridViewCommandColumn VisibleIndex="0">
<DeleteButton Visible="True">
</DeleteButton>
<EditButton Visible="True">
</EditButton>
<NewButton Visible="True">
</NewButton>
</dxwgv:GridViewCommandColumn>
<dxwgv:GridViewDataTextColumn Caption="ID" FieldName="ID" VisibleIndex="1">
</dxwgv:GridViewDataTextColumn>
<dxwgv:GridViewDataTextColumn Caption="DESCRIZIONE" FieldName="DESCRIZIONE" VisibleIndex="2">
</dxwgv:GridViewDataTextColumn>
</Columns>
<SettingsBehavior ConfirmDelete="True" AllowFocusedRow="True"></SettingsBehavior>
<ClientSideEvents RowClick="function(s, e) {
//GrdMain.StartEditRow(e.visibleIndex);
}" FocusedRowChanged="function(s, e) {
//GrdMain.PerformCallback(s.GetFocusedRowIndex());
}"></ClientSideEvents>
<SettingsEditing Mode="EditForm"></SettingsEditing>
</dxwgv:aspxgridview>
Thanks in advance for any tips/suggestion