I am having a heck of a time with a datagrid. This datagrid gets populated on a button click with results from a database. I want the datagrid to display the first 10 results and then be able to "page" to the next results and so on...... I can get the datagrid to page but other than that I cant get the darn thing to work for anything....
in the DataGrid1 Propertis page I have allow paging and allow custom paging selected with the page siae = 10. Show navigation buttons is selected as well... what am I doing wrong.
<asp:DataGrid ID="DataGrid1" runat="server" AllowPaging="True"
AllowSorting="True" ShowFooter="True" AllowCustomPaging="True">
<PagerStyle NextPageText=">" PrevPageText="<" BackColor="#FFCC66"
ForeColor="#333333" HorizontalAlign="Center" />