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 508879
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T06:57:11+00:00 2026-05-13T06:57:11+00:00

I have a grid control. And I want to access gridview child control from

  • 0

I have a grid control. And I want to access gridview child control from other controls.

Ex:

<asp:UpdatePanel ID="upPersonelAssignment" runat="server">
<ContentTemplate>
        <asp:Label ID="lblPersonelName" runat="server" ></asp:Label>
        <asp:Label ID="lblUpdatedDateTime" runat="server" ></asp:Label>
        <div id="divPersonelAssignmentSearch">
            <asp:GridView ID="gvPersonelAssignment" runat="server" DataSourceID="odsPersonelBLL" 
                AllowSorting="True" AutoGenerateColumns="False" 
                onrowdatabound="GridView1_RowDataBound">
                <Columns>
                    <asp:CommandField CancelText="Vazgeç" EditText="Amir Ata" ShowEditButton="True" 
                        UpdateText="Amir Kaydet" />
                    <asp:TemplateField HeaderText="Sicil No">
                        <ItemTemplate>
                            <asp:Label ID="lblPersonelSicilNo" runat="server"  Text='<%# Eval("personelSicil") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="İsim">
                        <ItemTemplate>
                            <asp:Label ID="lblPesonelFirstName" runat="server" Text='<%# Eval("personelAdi") %>'></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField> ...
...........
                    <asp:TemplateField HeaderText="Amir Liste">
                        <ItemTemplate>
                            <asp:Label ID="lblAmirList" runat="server" Text="Amir Liste"></asp:Label>
                        </ItemTemplate>
                    </asp:TemplateField>
...........

        <div id="divDropDownExtender" runat="server">
            <act:DropDownExtender ID="ddeAmirList" runat="server" 

            TargetControlID="lblAmirList" DropDownControlID="">

            </act:DropDownExtender>
        </div>

But I have error : The TargetControlID of ‘ddeAmirList’ is not valid. A control with ID ‘lblAmirList’ could not be found

How to access grid view child control from other control?

  • 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-13T06:57:11+00:00Added an answer on May 13, 2026 at 6:57 am

    using the ondatabound even of the gridview

    you can access the control inside your gridview by writing the following:

    protected void YourGridView_DataBound(object sender, EventArgs e)
    {
        Label label1 = (Label)e.Row.Cells[0].FindControl("lblAmirList");
        // access your control
        label1.Text = "sdfs";
    
        // do this for other controls inside gridview
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Suppose I have a grid with some row definitions, and a child control in
I have a control derived from System.Windows.Forms.UserControl which is placed in a customized grid.
I have a Grid control (not a DataGrid) and I want to remove the
I have a property grid control where I want to be able to display
I have one grid view control in my asp.net web application. For example i
i have a grid view in the web custom control and want to select
I have a grid view control in my application. Please see the below code.
I need a excel-like grid control in MFC, do anyone have good suggestion to
I have a grid and I need to dynamically replace a control that resides
Is it possible to have something like Data Grid or Grid View control in

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.