Documente Academic
Documente Profesional
Documente Cultură
<Columns>
<ItemTemplate>
<!-- Animated collapsible panel, with separate CSS and JavaScript -->
<div style="width:430px;">
<div>
<div style="height:20px; cursor: pointer;"
onclick="togglePannelStatus(this.nextSibling)">
<!—To show an Image for the Inner whether it is extended for
collapsed-->
<ItemTemplate>
</ItemTemplate>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
</div>
</div>
</div>
</ItemTemplate>
<HeaderStyle HorizontalAlign="Center"></HeaderStyle>
</asp:TemplateField>
</Columns>
</asp:GridView>
</div>
Code Behind
if (ds.Tables.Count > 0)
{
if (ds.Tables[0].Rows.Count > 0)
{
GrdViewParent.DataSource = ds.Tables[0];
GrdViewParent.DataBind();
}
}
}
//RowDataBound
string sCatId =
GrdViewParent.DataKeys[index].Values["CategoryId"].ToString();
string sSubCatId =
GrdViewParent.DataKeys[index].Values["SubCategoryId"].ToString();
if (ds.Tables.Count > 0)
{
if (ds.Tables[0].Rows.Count > 0)
{
GridView Grd = (GridView)
(e.Row.Cells[2].FindControl("GrdViewChild"));
Grd.DataSource = ds.Tables[0];
Grd.DataBind();
}
}
}
}