ASP.NET Datagrid problem
Posted on 2003-12-01
Having a problem using the Datagrid editing functions (ASP.NET)
Basically, i'm using the following code to update the datasource with the inbuilt editing functionality of the datagrid.
(function for on_Update)
ds = (DataSet)Session["Source"];
row = ds.Tables.Rows.Find(dgRejectGrid.DataKeys[e.Item.ItemIndex]);
int UserTimeID = int.Parse(row.ItemArray.ToString());
TextBox RejectNotes = (TextBox)e.Item.Cells.Controls;
string str = RejectNotes.Text;
Basically the control is found that isn't the problem, the only problem is the RejectNotes.Text always returns as empty string "".
I'm using the exact same code somewhere and it works fine!
I've setup the textbox correctly with the correct databindings.
I've deleted the datagrid and started again but i get the same problem.