hello guys,
i don't know if this is the right tread to post but i have the following problem:
i've built a dynamic gridview in run time because the gried values (columns, headers, etc) are conditioned with values that come from the database. I used TemplateField's to do that. i don't have a active connection to the database. i store my information to a dataset and bind it to the gridview
another thing is that all rows in m gridview are in editable mode.
now, i'm trying to retrieve the data from the grid to store at database and doesn't work.
if i try something like this
string value = ((TextBox)row.F indControl("NAM E")).Text;
only works for a static control. For a dynamic control it gives a null exception.
i really feel that i'm going a wrong way. this should be more simple.
any advise?
tks in advance
i don't know if this is the right tread to post but i have the following problem:
i've built a dynamic gridview in run time because the gried values (columns, headers, etc) are conditioned with values that come from the database. I used TemplateField's to do that. i don't have a active connection to the database. i store my information to a dataset and bind it to the gridview
another thing is that all rows in m gridview are in editable mode.
now, i'm trying to retrieve the data from the grid to store at database and doesn't work.
if i try something like this
string value = ((TextBox)row.F indControl("NAM E")).Text;
only works for a static control. For a dynamic control it gives a null exception.
i really feel that i'm going a wrong way. this should be more simple.
any advise?
tks in advance
Comment