G
Guest
I am having a problem finding out how to page a datagrid.
I have the procedure for moving from page to page as:
private void changePage(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
dgCustInfo.CurrentPageIndex = e.NewPageIndex;
--connection information and SELECT statement here not in a separate
procedure--
I have an Edit button in the datagrid to edit the record, but when I click
on it I get an error saying that the pageindex must be >0 <pagecount.
In the editRecord procedure I have the connection information and SELECT
statement to display only the record being edited in the datagrid and
textboxes outside the datagrid that display the data to be edited.
Can someone help me out?
Thanks,
Antonio
I have the procedure for moving from page to page as:
private void changePage(object source,
System.Web.UI.WebControls.DataGridPageChangedEventArgs e)
{
dgCustInfo.CurrentPageIndex = e.NewPageIndex;
--connection information and SELECT statement here not in a separate
procedure--
I have an Edit button in the datagrid to edit the record, but when I click
on it I get an error saying that the pageindex must be >0 <pagecount.
In the editRecord procedure I have the connection information and SELECT
statement to display only the record being edited in the datagrid and
textboxes outside the datagrid that display the data to be edited.
Can someone help me out?
Thanks,
Antonio