dcass
asked on
data grid paging - can u set it to a page?
I am using data grid paging on a C# listing program:
"<td borderColor="black"><asp:d atagrid id="dg" runat="server" OnPageIndexChanged="dg_Pag eIndexChan ged" AllowPaging="True" PageSize="15" OnItemDataBound="OnItemDat aBoundEven tHandler" OnItemCreated="OnItemCreat edEventHan dler" AutoGenerateColumns="True" >
and found that I have to figure out which page I'm on to get the actual line number:
int iCtr = e.Item.Controls.Count;
int y = dg.Items.Count+(dg.Current PageIndex* 15);
string sID = recordDtl.Rows[y][iCtr].To String();
Each line in the list (data grid) has a URL attached and when they select it and then later return - it always returns to page 1 no matter what page they were on when they selected from the data grid.
How can you set the page on the data grid to be selected?
Thanks -
"<td borderColor="black"><asp:d
and found that I have to figure out which page I'm on to get the actual line number:
int iCtr = e.Item.Controls.Count;
int y = dg.Items.Count+(dg.Current
string sID = recordDtl.Rows[y][iCtr].To
Each line in the list (data grid) has a URL attached and when they select it and then later return - it always returns to page 1 no matter what page they were on when they selected from the data grid.
How can you set the page on the data grid to be selected?
Thanks -
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.