By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
443,918 Members | 1,923 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 443,918 IT Pros & Developers. It's quick & easy.

Datagrid Dropdownlist becomes Textbox on Update!

P: n/a

I have a datagrid with autogenerates columns based upon a dataset I have
constructed from the results of database query - pretty noddy stuff.

When you click on Edit I remove the standard Textboxs you get with the Edit
command and replace a number of they with DropDownLists. I have to do this
programatically and not via asp template columns becuase the number of
columns can vary. The DropDownLists I create are show in the datagrid
without any problems, they even contain the options I want them to.

My problem is when I come to update - the DropDownList controls that I added
as part of the Edit command have strangely been replaced with TextBox
controls. They is no sign of the DropDownList controls I created! I've even
been through the Datagrid's entire control list to see if they are hidden
elsewhere, but alas no!

To sum up;
1 - Autogenerated Datagrid without templatecolumns
2 - The Edit command adds the DropDownLists to the datagrid successfully
3 - The Update connot see the DDL's I've just added only TextBoxes!

All Ideas welcome.
Nov 17 '05 #1
Share this question for a faster answer!
Share on Google+

This discussion thread is closed

Replies have been disabled for this discussion.