![]() |
Gridview problem
Hi, all
I tried to change the content in a cell when user click a button. the code as following: protected void Button1_Click(object sender, EventArgs e) { this.GridView1.SelectedIndex = 12; this.GridView1.EditIndex = this.GridView1.SelectedIndex; Label1.Text = this.GridView1.SelectedRow.Cells[0].Text; this.GridView1.SelectedRow.Cells[2].Text="10"; } Everything is OK except the content in Cells[2] does not change, and when I click the button again, it changes this time and the cell becomes unalterable. How can I accept the change and keep the cell alterable. thanks! |
| All times are GMT. The time now is 10:27 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.