Remove EnableViewState="false" e.g enable the view state for the control.
--
Teemu Keiski
ASP.NET MVP, AspInsider
Finland, EU
http://blogs.aspadvice.com/joteke
"Arne" <> wrote in message
news:AF8AA2D1-F016-475A-9DBD-...
> How do get my pageIndexChanged event to fire?
> --Code behind fragment
> Public Sub PromoGrid_PageIndexChanged(ByVal source As Object, ByVal e As
> System.Web.UI.WebControls.DataGridPageChangedEvent Args) Handles
> PromoGrid.PageIndexChanged
> PromoGrid.CurrentPageIndex = e.NewPageIndex
> bindDataGrid()
> End Sub
> -- Here is by aspx page fragment
> <asp:datagrid id="PromoGrid" runat="server" EnableViewState="False"
> AllowPaging="True" AutoGenerateColumns="False" CellPadding="4"
> OnPageIndexChanged="PromoGrid_PageIndexChanged">
>
>
> All the examples I can find uses code inline. I am using code behind.