Hi Friends

I am using asp.net & sqlserver,I have an gridview,in which i am using inbuild insert,update,delete code,but when i click on edit button so textboxes shows there, But i want dropdowns there & when I click on update button so the selected value must be save on database ,but these all are being from source code so when i take dropdowns it doesn't save value

Plz help me to solve this

you should set autogeneratecolumns attribute to false and then you should add your custom EditItemTemplate and InsertItemTemplate, basically you are going to use templates for your gridview.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.