最近一直在用Developer Express的这套控件,在使用ASPxGridView空间是想触发服务器端FocusedRowChanged事件,网上找了很长时间发现网上有相关的文章,安照作者写的设置发现有点问题,特此修改一下(用的时8.3.3的版本)
(1)
<dxwgv:ASPxGridView ID="xGridView" runat="server" Width="100%" AutoGenerateColumns="False" KeyFieldName="Id"
OnFocusedRowChanged="xGridView_FocusedRowChanged" EnableCallBacks="false">
(2)
<SettingsBehavior AllowFocusedRow="True" ProcessFocusedRowChangedOnServer="True" />
(3)
protected void xGridView_FocusedRowChanged(object sender, EventArgs e)
{
}