i have two radgrids(asp.net) and my requiremnet is on selection of pagination and changing page size on grid one, the second grid should respond..
here is my code
it is working with secon grid but not with first grid....plz help me out
here is my code
it is working with secon grid but not with first grid....plz help me out
protected void radgv1_PageIndexChanged(object source, GridPageChangedEventArgs e)
{
try
{
Session[
"First"] = radgv1.CurrentPageIndex;
if (Session["Second"] != null)
{
Session.Remove(
"Second");
radgv1.CurrentPageIndex = e.NewPageIndex;
radgv1.Rebind();
}
else
{
radgv2_PageIndexChanged(source, e);
}
}
catch (Exception ex)
{
}
}
protected void radgv2_PageIndexChanged(object source, GridPageChangedEventArgs e)
{
try
{
Session[
"Second"] = radgv2.CurrentPageIndex;
if (Session["First"] != null)
{
Session.Remove(
"First");
radgv2.CurrentPageIndex = e.NewPageIndex;
radgv2.Rebind();
}
else
{
radgv1_PageIndexChanged(source, e);
}
}
catch (Exception ex)
{
}
}