Get Help:Ask a Question in our Forums|Report a Bug|More Help Resources
Last post Dec 11, 2012 09:03 AM by Frank Jiang - MSFT
Dec 09, 2012 10:00 AM|LINK
hi, experts, I think this question has been asked many times but my case is quite complicated . so I decided to ask there directly.
I have a gridview that has some dropdownlist columns and have one of the dropdown list column will be hidden when one option in another dropdownlist is selected
and some columns are textbox column that allows users to input some text on it.
due to some limitation, I have to put the add row button outside the gridview
then, my problem comes, I find that what users input in the textbox columns cannot be saved when add row button is clicked, after the event of add row completed, the input text disappears.
is it a must to databind again for the gridview ? another alternative ways?
and I find that it is not allowed to get the input data from gvXXX.DataSource . how to add the new row?
Dec 10, 2012 04:36 AM|LINK
Refer these may help you:
Try to add a new row in your gridview's datasource and bind it to the gridview.
Dec 11, 2012 09:03 AM|LINK
Rebind your GridView after adding the new row: