Datagrid

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!
 
G

Guest

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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top