need a paging update for gridview after hidden rows RRS feed

  • Question

  • Hi , im new in this forum if i placed my questions to a wrong place please forgive me , I have a Gridview and chekbox i can hide rows basing on value when the chekbow is cheked , my probléme is when the rows ar hidden the pagination is not updated thats mean i  can have th first page empty (all rows are hidden ) and page two have rows what's is not good for user who need to check all pages , my code for hiddeig row an the databoud event :


     void GridDED_RowDataBound(object sender, GridViewRowEventArgs e)
          if (e.Row.RowType == DataControlRowType.DataRow)
            if (CBassistante.Checked == true)
              string v = (string)DataBinder.Eval(e.Row.DataItem, "Status");
              if (v == "New")
                e.Row.Visible = false;

    and paging event : 

     protected void GridDED_PageIndexChanging(object sender, GridViewPageEventArgs e)
          GridDED.PageIndex = e.NewPageIndex;
    thanks for advance 

    • Changed type bouhmid86 Sunday, May 1, 2011 10:21 PM not th right forum
    Sunday, May 1, 2011 6:29 PM

All replies

  • No one can help me ???


    Sunday, May 1, 2011 10:44 PM
  • Your post doesn't seem to have anything to do with Axum!

    But in any case Microsoft have terminated this project so that's why you've not had any help. That's the risk with Dev Labs projects. I expect that various Axum features will be rolled into the rest of .NET over time. Maybe TPL DataFlow is where to head for next. This is also in Dev Labs. However, I believe this will be included in .NET as standard. There was a recent announcement.

    Thursday, May 26, 2011 3:15 PM