Datagrid

  • Thread starter Thread starter forlist2001
  • Start date Start date
F

forlist2001

How do i find the type of control is datagrid? I have grid inside a
grid. If I do typeof it does not work for datagrid.

One more thing how do I read data back from grid? I can read the
orignal value from textbox but not the new value.

Help!
 
For your first question, I think it's better to use

(DataGrid)datagrid.Items[row_index].FindControl("inner_grid_ID");

For your second question, I suppose you missed if(! IsPostBack) in Page_Load.
You need

if(! IsPostBack)
{
// BindDatagrid
}


HTH

Elton Wang
 
Back
Top