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

  • SEARCH
  • Home
  • 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 7022479
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T23:35:16+00:00 2026-05-27T23:35:16+00:00

i am updating my table by placing datailsview in the webpage and giving it

  • 0

i am updating my table by placing datailsview in the webpage and giving it a datasource,

i have introduced a dropdownlist in the middle of bounded control and want it to be filled
according to my given instruction, but the DropDownList is not accessible via ID in code-behind, e.g.:

<asp:TemplateField>
    <ItemTemplate>
        <asp:DropDownList ID="drpdownlist" DataSourceID="deptsource" Width="150px" DataTextField="deptname" DataValueField="deptid" runat="server" />
    </ItemTemplate>
</asp:TemplateField>
  • 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-27T23:35:17+00:00Added an answer on May 27, 2026 at 11:35 pm

    First you need to use the FindControl() method after rows are databound as abatishchev mentioned. Also, you need to remember that this wont be possible until there are in fact some rows in the grid. But you need to also remember that you will not get just one DropDownList, but instead there will be one DropDownList for each row in your GridView.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a question about updating table through t-sql. The client may want to
I have a little problem in updating date. My first table is DONOR donor-nic----username-----status
I am using greasemonkey script and have updating the table using following code. I
I have created a small test for updating table using Linq-to-SQL DataContext as follows:
I have programmed a simple hibernate app which isn't updating the table. The following
I have a problem converting dates while updating an SQL table in VB under
i have a complicated PHP conundrum. I have a constantly updating table in my
I am updating a table with spatial types and there are three or more
I need to take some actions which involve updating a database table when a
I'm updating a program and adding a new table to the database. The program

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.