Updating data in a datagrid

  • Thread starter Thread starter Paul
  • Start date Start date
P

Paul

Hi

I am trying to add a function to the edit, update and canel buttons to
my datagrid. I currenly have the following:
---
string newData;
TextBox aTextBox;
aTextBox = (TextBox)(e.Item.Cells[1].Controls[0]);

newData = aTextBox.Text;
---

But this code seems to be pulling out the old value which is stored in
the field?

I have had this issue on other webforms which don't use datagrids and
have solved this issue by using the following:

Request.Form["fieldName"]

I'm a newbie to c# so any help you could give me would be greatly
appreachiated.

Cheers
Paul
 
Back
Top