M
Maziar Aflatoun
Hi,
I have a datagrid which binds to a datareader
dgXXXXX.DataSource = rdr;
dgXXXXX.DataBind();
On dgXXXXX_EditCommand I can read the value of the selected row(
e.Item.ItemIndex) which works. How can I read the contents of that cell. I
have the following code which doesn't work.
dgXXXXX.EditItemIndex = e.Item.ItemIndex;
Filename = dgXXXXX.Items[e.Item.ItemIndex].Cells[2].Text;
Response.Write("Filename:" + Filename);
Can't I grab a cell content of a datagrid?
Thank you
Maziar A.
I have a datagrid which binds to a datareader
dgXXXXX.DataSource = rdr;
dgXXXXX.DataBind();
On dgXXXXX_EditCommand I can read the value of the selected row(
e.Item.ItemIndex) which works. How can I read the contents of that cell. I
have the following code which doesn't work.
dgXXXXX.EditItemIndex = e.Item.ItemIndex;
Filename = dgXXXXX.Items[e.Item.ItemIndex].Cells[2].Text;
Response.Write("Filename:" + Filename);
Can't I grab a cell content of a datagrid?
Thank you
Maziar A.