Click here to Skip to main content
15,881,687 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hello all

I have taken one gridview for this gridview i have written bindmethod, but when
i apply like gridviewname.Rebind() the Rebind() method is not working. Please tell me
any why it is not working.

Thanks & Regard's
Posted
Comments
chester_it21 30-Jan-13 4:39am    
Rebind need Datasource like ObjectDataSource,not set GridView binding from code behind...
your gridview set datasource from ObjectDataSource,.
AshishChaudha 30-Jan-13 7:15am    
Please share your code.

C#
protected void Page_Load(object sender, EventArgs e)
  {
      if (!IsPostBack)
      {
          BindData();
      }
  }

  public void BindData()
  {

      GridView1.DataBind();

  }
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900