Problem of accessing Item_Command Of Grid

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • ndhamecha
    New Member
    • Feb 2010
    • 10

    Problem of accessing Item_Command Of Grid

    Hi,
    I am working on ASP.NET 2008. I am using a datagrid inside a datagrid. And i want to access the item_commnd event of a inner datagrid. I could not access it.How can i Access It.


    Code:
    <asp:DataGrid ID="DtDate" runat="server" AutoGenerateColumns="false" Width="100%"
    BorderWidth="0" BorderColor="White" PageSize="7">
    <Columns>
    <asp:TemplateColumn ItemStyle-Width="100%">
    <ItemTemplate>
    <table cellpadding="0" cellspacing="0" border="0" width="100%" class="CreateBox">
    <tr class="InnerTab" style="cursor: pointer">
    <td align="left">
    <asp:Panel ID="PnlTitle" runat="server">
    <%--<%#Container.DataItem("SemisterName")%>--%>
    <asp:Image ID="Img" runat="server" ImageUrl="~/Images/expand_blue.jpg" /> 
    <%#Container.DataItem("Date")%>
      (<%#Container.DataItem("Day")%>)       
    <asp:Label ID="LblDetail" runat="server" Text="(Show Lactures...)"></asp:Label>
    </asp:Panel>
    </td>
    </tr>
    <tr>
    <td>
    <asp:Panel ID="PnlDetail" runat="server">
    <asp:Label ID="LblGrdDetail" CssClass="BlackLinksBold" runat="server"></asp:Label>
    <asp:DataGrid ID="GrdDetailTimeTable" runat="server" CssClass="NormalText" CellPadding="2"
    CellSpacing="1" BorderWidth="0" AutoGenerateColumns="false" Width="100%" ItemStyle-CssClass="GrdAltColor1"
    AlternatingItemStyle-CssClass="GrdAltColor2" HeaderStyle-CssClass="TableHeadingNormal" OnItemCommand="GrdDetail_ItemCommand">

    I want to access the Item_Command event of GrdDetailTimeTa ble" . Help me.....

    its urgent pls.
    thax in advance
    Regards,
    n.j.dhamecha
    Last edited by tlhintoq; Feb 25 '10, 01:52 PM. Reason: [CODE] ...Your code goes between code tags [/CODE]
  • tlhintoq
    Recognized Expert Specialist
    • Mar 2008
    • 3532

    #2
    TIP: When you are writing your question, there is a button on the tool bar that wraps the [code] tags around your copy/pasted code. It helps a bunch. Its the button with a '#' on it. More on tags. They're cool. Check'em out.

    Comment

    Working...