DropDown List In a DataGrid

Hi ,

I have a DropDown List In a DataGrid  and When I try to insert the Value of the DropDown List Into DB I'm always getting a Null Value. I'm Not able to Retain the Selected item in the DropDown . Can Any Body Please Help

Thanks

Raghu
Raghunandan44Asked:
Who is Participating?
 
rafranciscoConnect With a Mentor Commented:
When populating the DropDownList, do you check for postback?

if (!IsPostBack) {
    PopulateDropDownList();
}
0
 
allanau20Commented:
How are you accessing your dropdownlist inside your datagrid?

You'll need to loop through your datagrid to get to the dropdownlist:

Accessing Control's Value from DataGrid in ASP.NET

http://www.c-sharpcorner.com/Code/2003/Jan/AccessDataGridVal.asp

HtH
0
 
allanau20Commented:
You're insane rafrancisco ! 50K points in less than a month !!!
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

 
rafranciscoCommented:
Thank you allanau20.  Actually I joined Experts Exchange on last April 8, 2005 :)
0
 
RejojohnyCommented:
could u post the code
0
 
Raghunandan44Author Commented:
How can i Access a DropDown List Which is in a Datagrid on Page Load ?

Can Anybody Send Me a code snippet


Thanks

Raghu
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.