Click here to Skip to main content
12,453,873 members (74,939 online)
Rate this:
 
Please Sign up or sign in to vote.
See more: C# C#4.0
In my form i have two dropdownlist(DDL), first one is 'State' next one is 'City'.
In same page Gridview also using,in that i put edit button also for every row.
when i click the edit button the row values must be sent to their corresponding areas in the my form. That time DDL-state shows twice the selected value..

then how can i remove the repeted value in DDL.?
Posted 28-Sep-12 3:06am
Comments
n.podbielski 28-Sep-12 9:26am
   
Seems like your code is wrong since selects value in drop down twice. You should correct that.

1 solution

Rate this: bad
 
good
Please Sign up or sign in to vote.

Solution 1

Take care of DDL on Edit button click. You can clear and re-add the list items. Or you can implement a check point while updating DDL items.
  Permalink  

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


Advertise | Privacy | Mobile
Web01 | 2.8.160826.1 | Last Updated 28 Sep 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100