Welcome! and rules
Joel on Software
DataGrid and paging - odd behaviour
ASP.NET 1.1. Have a datagrid in my aspx page, with no column tag (I'm going to populate them programatically). I have paging turned on, and autogeneratecolumns turned off.
When I click on the page numbers, the PageIndexChanged event doesn't fire.
In the aspx page, when I add the column tag and an invisible bound column in the aspx page (<Columns><asp:BoundColumn Visible="False"> </asp:BoundColumn></Columns>), the PageIndexChanged event fires.
This also happens with repeaters - the ItemCommand doesn't fire unless there's an <ItemTemplate></ItemTemplate> tag in the aspx page.
Why does changing the aspx page change if an event gets triggered?
Thursday, March 31, 2005
Fog Creek Home