Datagrid FOOTERTEMPLATE

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • sakieboy

    #1

    Datagrid FOOTERTEMPLATE

    I have a FOOTERTEMPLATE that consists of a 3 DropDownLists. When something
    from DDL1 is selected it then populates DDL2, when something from DDL2 is
    selected it then populates DDL3.

    DDL1 is currently populated, but when I make a selection, it just doesn't
    recognize that my FOOTERTEMPLATE is part of my Datagrid. I have 2 rows, the
    first one for the "Edit" and my FOOTERTEMPLATE for my "Add". The debug
    recognizes my 1st row but has no clue about my second row. My sender.id is
    showing my DDL1 ("SuccessItem_A dd") which is correct. Here's the code...

    <asp:TemplateCo lumn HeaderText="Suc cess Item">
    <ItemTemplate >
    <%# DataBinder.Eval (Container.Data Item,"SuccessIt em") %>
    </ItemTemplate>
    <EditItemTempla te>
    <asp:DropDownLi st id="SuccessItem _Edit"
    DataTextField=" DropDownTrans" DataValueField= "DropDownCo de"
    runat="server" Width="450" enabled="false" />
    </EditItemTemplat e>
    <FooterTemplate >
    <asp:DropDownLi st id="SuccessItem _Add"
    DataTextField=" DropDownTrans" DataValueField= "DropDownCo de"
    runat="server" Width="450" enabled="false" />
    </FooterTemplate>
    </asp:TemplateCol umn>

    I can see the "SuccessItem_Ed it" in the debug, but not the "SuccessItem_Ad d".


    Thanks
  • sakieboy

    #2
    RE: Datagrid FOOTERTEMPLATE

    SOLUTION:

    MyDataGrid.Cont rols(0).Control s(MyDataGrid.Co ntrols(0).Contr ols.Count -
    1).Controls.Ite m(0).Controls.I tem(1)



    "sakieboy" wrote:
    [color=blue]
    > I have a FOOTERTEMPLATE that consists of a 3 DropDownLists. When something
    > from DDL1 is selected it then populates DDL2, when something from DDL2 is
    > selected it then populates DDL3.
    >
    > DDL1 is currently populated, but when I make a selection, it just doesn't
    > recognize that my FOOTERTEMPLATE is part of my Datagrid. I have 2 rows, the
    > first one for the "Edit" and my FOOTERTEMPLATE for my "Add". The debug
    > recognizes my 1st row but has no clue about my second row. My sender.id is
    > showing my DDL1 ("SuccessItem_A dd") which is correct. Here's the code...
    >
    > <asp:TemplateCo lumn HeaderText="Suc cess Item">
    > <ItemTemplate >
    > <%# DataBinder.Eval (Container.Data Item,"SuccessIt em") %>
    > </ItemTemplate>
    > <EditItemTempla te>
    > <asp:DropDownLi st id="SuccessItem _Edit"
    > DataTextField=" DropDownTrans" DataValueField= "DropDownCo de"
    > runat="server" Width="450" enabled="false" />
    > </EditItemTemplat e>
    > <FooterTemplate >
    > <asp:DropDownLi st id="SuccessItem _Add"
    > DataTextField=" DropDownTrans" DataValueField= "DropDownCo de"
    > runat="server" Width="450" enabled="false" />
    > </FooterTemplate>
    > </asp:TemplateCol umn>
    >
    > I can see the "SuccessItem_Ed it" in the debug, but not the "SuccessItem_Ad d".
    >
    >
    > Thanks[/color]

    Comment

    Working...