Paging

A

Arne

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.DataGridPageChangedEventArgs) 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.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,007
Latest member
obedient dusk

Latest Threads

Top