I have a gridview which shows how many issues are open,pending and completed and when i click open only the issues which are opened are displayed in second gridview similarly when i click pending only the issues which are pending are displayed in same second gridview and when i click completed only the issues which are completed are displayed in second gridview based on the selection of link button the issyes are binded to second gridview. my question is how can i call the link button in page index changing event of second gridview
protected void lnkOpen_Click(object sender, EventArgs e)
{
DataTable dt = adm.GetBugsToView("Open", ddlProject0.SelectedValue);
gvShowBugs.Visible = true;
lnkDownload1.Visible = true;
if (dt.Rows.Count > 0)
{
gvShowBugs.DataSource = dt;
gvShowBugs.DataBind();
}
else
{
gvShowBugs.DataSource = null;
gvShowBugs.DataBind();
}
ViewState["Clicked"] = "Open";
}
protected void lnkInpen_Click(object sender, EventArgs e)
{
DataTable dt = adm.GetBugsToView("In-Progress", ddlProject0.SelectedValue);
gvShowBugs.Visible = true;
lnkDownload1.Visible = true;
if (dt.Rows.Count > 0)
{
gvShowBugs.DataSource = dt;
gvShowBugs.DataBind();
}
else
{
gvShowBugs.DataSource = null;
gvShowBugs.DataBind();
}
ViewState["Clicked"] = "InProgress";
}
protected void lnkComp_Click(object sender, EventArgs e)
{
DataTable dt = adm.GetBugsToView("ReTest", ddlProject0.SelectedValue);
gvShowBugs.Visible = true;
lnkDownload1.Visible = true;
if (dt.Rows.Count > 0)
{
gvShowBugs.DataSource = dt;
gvShowBugs.DataBind();
}
else
{
gvShowBugs.DataSource = null;
gvShowBugs.DataBind();
}
ViewState["Clicked"] = "ReTest";
}
I need to call the bind the three view states data based on the click of link button how can i do this
protected void gvShowBugs_PageIndexChanging(object sender, GridViewPageEventArgs e)
{
}