|
code
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Gridview problemI 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!
controls & Session
GridView Asp.net charting control Localization of the ASP.NET login control Drop Down Box Validation Problem usercontrols and postback Calendar control - disabling past dates. What happen to powerupasp.net? Table can't be a container for other controls? passing query string as variable from aspx.cs to aspx |
|||||||||||||||||||||||