HighTechTalks DotNet Forums  

Dropdownlist index change event problem.

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Dropdownlist index change event problem. in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Thanigaimani.thirumalai
 
Posts: n/a

Default Dropdownlist index change event problem. - 11-07-2007 , 10:39 AM






Hi guys.
i can explain for my doubt with example.see.my table have multiple type of employee details like as Mangemment,Programmer,Designers,Accountants,Contra ctEmployees.Each type of department having many employee details.Now my drop down list having types of department names like that above types of department names..if i select any one type of department data wil be display in gridview format .gridview data column as employee Name,Address,Phone_No,email_address and each every row with checkboxes.gridview showing data according to select the dept.No problem.

first I select Mangemment type of employee grid view showing that type of employee details ,here i checked first two employee details then checkbox values put in one viewstate,then i go to Programmer type of employee it showing that type employee details here i want to checked two employee details using checkbox but what happened first two checkboxes are already checked. so view state having proper checked check box values but problem is
whenever i go to select for another type of employee details checkboxes are checked based upon order of previous checked index.

this is my problem.plz clear my problem.its very urgent.



whenever i select dropldown list viewstate values is empty . this is my problem.



Reply With Quote
  #2  
Old   
Mohamad Elarabi
 
Posts: n/a

Default RE: Dropdownlist index change event problem. - 12-19-2007 , 01:04 AM






I'm not exactly sure how you're getting checkboxes to show on a GridView and
where you're saving the checked indexes but I think you would need to clear
the checkbox values on the GridView when the drop down value changes.

In other words:

during the myDropDown.SelectedIndexChanged event, you'd go and reset the
checkbox values on the gridview.

Good luck.

--
Mohamad Elarabi
Lead Developer. MCTS, MCPD.


"Thanigaimani.thirumalai" wrote:

Quote:
Hi guys.
i can explain for my doubt with example.see.my table have multiple type of employee details like as Mangemment,Programmer,Designers,Accountants,Contra ctEmployees.Each type of department having many employee details.Now my drop down list having types of department names like that above types of department names..if i select any one type of department data wil be display in gridview format .gridview data column as employee Name,Address,Phone_No,email_address and each every row with checkboxes.gridview showing data according to select the dept.No problem.

first I select Mangemment type of employee grid view showing that type of employee details ,here i checked first two employee details then checkbox values put in one viewstate,then i go to Programmer type of employee it showing that type employee details here i want to checked two employee details using checkbox but what happened first two checkboxes are already checked. so view state having proper checked check box values but problem is
whenever i go to select for another type of employee details checkboxes are checked based upon order of previous checked index.

this is my problem.plz clear my problem.its very urgent.



whenever i select dropldown list viewstate values is empty . this is my problem.




Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.