need a paging update for gridview after hidden rows

Uzamčený need a paging update for gridview after hidden rows

  • 1. května 2011 18:29
     
      Obsahuje kód

    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;
          
          GridDED.databind();
        }
    thanks for advance 

    • Změněný typ bouhmid86 1. května 2011 22:21 not th right forum
    •  

Všechny reakce

  • 1. května 2011 22:44
     
     

    No one can help me ???

     

  • 26. května 2011 15:15
     
     

    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.


    Kevin