Click here to Skip to main content
15,885,817 members
Please Sign up or sign in to vote.
3.00/5 (2 votes)
See more:
hello friends ,
i am working on a job portal site.
heere user can enter multiple profiles .
i am showing all profiles in gridview.now what my requirement is ,
there should be a status link with his all profiles(it is in bit) .

Example:this is my gridview
jobseekerid Profileid status
1 2 Active
1 3 DeActive
1 4 DeActive
1 5 DeActive
1 6 DeActive

From all of this only one profile can be active.
so wwhen uaser will click on any decative profile ,it will become active and then all
remaining profile will become deactive.
condition is at a time only one profile can be active .(when he make his one profile active remaining will become deactivative automatically)
now problum is i am not able to making all the remaining profiles deactive when user make a profile active in gridview .
Please help me .
Thank You All in Advance
Posted
Updated 21-Apr-11 0:00am
v3

In that scenario first if you can design your classes like that
    public class JobSeker
    {
        public string ID { get; set; }
        public List<profile> ProfileCollection { get; set; }
    }
    public class Profile
    {
        public string ID { get; set; }
        public bool isActive { get; set; }
    }
</profile>


Now you can traverse the all the profiles based on the clicked profile and can alter the Active property.
 
Share this answer
 
You haven't actually asked a question, you have only stated what you are doing. Please ask a question or state what it is that's not working and what it should be doing.
 
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