How to put dropdown in gridview dynamically from the database?

Posted by Prabu_Spark under ASP.NET on 11/2/2012 | Points: 10 | Views : 1244 | Status : [Member] | Replies : 1
Hi sir,
I put dropdown list inside the gridview with edit option in gridview. If i press edit button , i want to select the option obtained from the
database.


[Note: I am getting only first option default but not from the database]

I need solution for this problem.


With regards,
J.Prabu

With regards,
J.Prabu.
[Email:prbspark@gmail.com]



Responses

Posted by: Sourabh07 on: 11/2/2012 [Member] Starter | Points: 25

Up
0
Down
hi sir........

According to me.....you can just place the dropdown list in the gridview template field and set its property visible = false , after that if some one clicks on the edit button then reset its property to true and find out the dropdown list of the selected row and then edit your list items, also possible to add the list item in the drop down list too.



Sourabh07

Prabu_Spark, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response