G
Guest
I have a problem with editable datagrid and was hoping if anyone could help
me. Please help me if possible.
I have an editable datagrid, whose column count I don’t know until runtime.
I am sure of 3 columns Id,Name and Description.
But there also might be more. So I add these 3 columns and an
editcommandbutton and deletecommnadbutton at design time.
Then during runtime I insert my other columns that I need, in between
Description and Edit columns.
I need checkboxes in these dynamically created template columns. So I
implement the ITemplate interface and the databinding works just fine. I give
Ids for both checkboxes in Itemtemplate as well as EditItemTemplate.
Now, when I say Update, in updatecommand event handler, I am not able to
find the checkbox controls that I created for EditItemTemplate.
I tried adding columns at every pageload, even then I can’t find the controls.
Can anybody please help me in achieving this. It is urgent
TIA
Suma.
me. Please help me if possible.
I have an editable datagrid, whose column count I don’t know until runtime.
I am sure of 3 columns Id,Name and Description.
But there also might be more. So I add these 3 columns and an
editcommandbutton and deletecommnadbutton at design time.
Then during runtime I insert my other columns that I need, in between
Description and Edit columns.
I need checkboxes in these dynamically created template columns. So I
implement the ITemplate interface and the databinding works just fine. I give
Ids for both checkboxes in Itemtemplate as well as EditItemTemplate.
Now, when I say Update, in updatecommand event handler, I am not able to
find the checkbox controls that I created for EditItemTemplate.
I tried adding columns at every pageload, even then I can’t find the controls.
Can anybody please help me in achieving this. It is urgent
TIA
Suma.