1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

How to find the id of a control, which is inside a grid.

Discussion in 'C#' started by AnilSesetti, Jun 21, 2012.

  1. #1
    Hi All. Let me explain my present scenario. I have a grid with an edit link button for every row. When i click on edit link button a drop down should come in one column of the grid. I have to dynamically load that drop down after clicking on edit and have to enable it. I'm trying to find that control using find control method, but with no success. Eg: Dim CboType As DropDownList = DirectCast(GrdManageBenefitCostTypes.Rows(e.NewEditIndex).FindControl("CboType"), DropDownList)Could you please let me know how to find the control id inside the grid. Thanks in Advance
    SEMrush
     
    AnilSesetti, Jun 21, 2012 IP
    SEMrush
  2. TasteOfPower

    TasteOfPower Peon

    Messages:
    572
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    There is no telling what you are doing wrong.

    Traverse thru the controls in the row and output the id and type of each control you find.
     
    TasteOfPower, Jul 2, 2012 IP