A
Ariel Gimenez
Morning!
After several hours breaking my mind, finally my code works, but i think is
trash-code, can someone tellme how is the correct way to access the value of
my cells within a datagrid?... in some cases i can access the values with
e.Item.Cells[NumCell].Text, but in other cases i have to do weird thinks
like the following:
TextBox pp; //I know...disgusting!!!
pp= (TextBox) e.Item.Cells[0].Controls[0] ;
int id = Convert.ToInt32(pp.Text );
Bussiness biz = new Bussiness();
pp= (TextBox) e.Item.Cells[1].Controls[0]; // de nuevo la misma chanchada...
biz.UpdateUser(id,pp.Text);
BindData();
Please any information who helpme to understand the way asp.net render this
cells will be welcome!
TIA
Ariel Gimenez
Argentina
After several hours breaking my mind, finally my code works, but i think is
trash-code, can someone tellme how is the correct way to access the value of
my cells within a datagrid?... in some cases i can access the values with
e.Item.Cells[NumCell].Text, but in other cases i have to do weird thinks
like the following:
TextBox pp; //I know...disgusting!!!
pp= (TextBox) e.Item.Cells[0].Controls[0] ;
int id = Convert.ToInt32(pp.Text );
Bussiness biz = new Bussiness();
pp= (TextBox) e.Item.Cells[1].Controls[0]; // de nuevo la misma chanchada...
biz.UpdateUser(id,pp.Text);
BindData();
Please any information who helpme to understand the way asp.net render this
cells will be welcome!
TIA
Ariel Gimenez
Argentina