Click here to Skip to main content
15,917,859 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i want to use driop downlist to be used in my gridview in a perticulor column and i want done checkbox associated in one column ,when user select the dropdownlist field and click the checkbox to select number of rows after selecting he will click submit button and it will fire update query.can anyone guide me as i am not getting the dropdown list name in intellisense
Posted
Comments
NaDeRSetarei 24-Nov-10 18:55pm    
no way amoo jan

1 solution

You will not get the dropdown list name in Intellisence.The reason is that ,it is an Embedded contol inside the Gridview and this facility in not provided from the Micrososft.

If you want to acces those Control,please follow the following steps :
Let the name of gridview be " grdView1 "

1> Declare a new variable as Dropdonlist .

e.g. DropDownList d=new DropDownList();

2> Then use the method "findControl()" to get the access to the resource.

e.g. d=(DropDownList)grdView1.FindControl('name_of_the_Dropdownlist_to which_you_want_access_to');

3>Now this (dropdown list) d will get the value of the control (i.e. Dropdownlist in this case )embedded inside GridView.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900