Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6734299
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T10:52:20+00:00 2026-05-26T10:52:20+00:00

Does anyone know if you can access the databound event from a databound, say,

  • 0

Does anyone know if you can access the databound event from a databound, say, dropdownlist that is within a FormView EditItemTemplate?

For example, say you have a member update form, and within the EditItemTemplate you have a dropdownlist that binds the CityID to a list of Cities. So I’d like to tap into the databound event for that control in the formview and add a value to the cities.

Also, I know there are other ways to handle the situation. I’m not looking for an alternate solution to this problem, I’d like to know if anyone has been able to do it this way?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-26T10:52:20+00:00Added an answer on May 26, 2026 at 10:52 am

    Sure! Here’s a way I’ve done it before. Once your FormView loads, you can find the DataBound control using the FindControl method:

    DropDownList myDDL = (DropDownList)FormView1.Findcontrol("myDDL");
    

    Then, you can use the += syntax to add the event handler method you’ve written:

    myDDL.DataBound += myDDL_DataBound;
    

    Then, whenever you call myDDL.DataBind(), the myDDL_DataBound method will be executed.

    Edit: Just to be clear – you say “Access the databound event”. That means the method I mentioned (myDDL_DataBound) needs to look something like this:

    protected void myDDL_DataBound(object sender, EventArgs e)
    {
        //The code you want to execute for the embeded, databound control goes here.
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

does anyone know where on access 2007 a function where i can access my
Does anyone know how I can, in platform-independent C++ code prevent an object from
Does anyone know if Tomcat can restrict access to certain application by IP address
Does anyone know where I can access and use a thesaurus using Java? I
Does anyone know why I can't access the array keys in the generated json
Does anyone know how can I cut a string and then assign into an
Does anyone know how can I detect the browser type in css? What I
Does anyone know where can I find recent data on PHP4 vs PHP5 market
Does anyone know how can I catch a mail error (error is displayed while
Does anyone know how can I edit a subitem on a listView? I've tried

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.