G
Guest
Hi,
i have a template column in datagrid. Inside template column i have panel. I
want to control the visibility of the panel with checkbox. can this be done?
<asp:TemplateColumn>
<ItemTemplate>
<asp
anel id="pnlDocumentDetailsGrid" runat="server"
Visible="False">
<TABLE id="Table112" cellSpacing="0" cellPadding="0"
width="100%" border="0">
<TR bgColor="#1d4076">
<TD width="1%"> </TD>
<TD align="left">
<FONT style="FONT-WEIGHT: bold; FONT-SIZE: 12pt;
FONT-FAMILY: Arial" color="#c3daff">
<%# Container.DataItem("description")%>
</FONT>
</TD>
<TD align="right">
<FONT style="FONT-WEIGHT: bold; FONT-SIZE: 12pt;
FONT-FAMILY: Arial" color="#c3daff">
Bulletin: <%# Container.DataItem("uploaddate")%>
</FONT>
</TD>
<TD>
<IMG src="../images/Curly.jpg"></TD>
</TR>
</TABLE>
</asp
anel>
</ItemTemplate>
</asp:TemplateColumn>
Here is my codebehind itemdatabound event:
Sub dGridAvailableDocuments_Bound(ByVal sender As Object, ByVal e As
DataGridItemEventArgs)
If cBoxDocDetails.Checked Then
e.Item.FindControl("pnlDocumentDetailsGrid").Visible = True
End If
End Sub
Thanks
Manny
i have a template column in datagrid. Inside template column i have panel. I
want to control the visibility of the panel with checkbox. can this be done?
<asp:TemplateColumn>
<ItemTemplate>
<asp
Visible="False">
<TABLE id="Table112" cellSpacing="0" cellPadding="0"
width="100%" border="0">
<TR bgColor="#1d4076">
<TD width="1%"> </TD>
<TD align="left">
<FONT style="FONT-WEIGHT: bold; FONT-SIZE: 12pt;
FONT-FAMILY: Arial" color="#c3daff">
<%# Container.DataItem("description")%>
</FONT>
</TD>
<TD align="right">
<FONT style="FONT-WEIGHT: bold; FONT-SIZE: 12pt;
FONT-FAMILY: Arial" color="#c3daff">
Bulletin: <%# Container.DataItem("uploaddate")%>
</FONT>
</TD>
<TD>
<IMG src="../images/Curly.jpg"></TD>
</TR>
</TABLE>
</asp
</ItemTemplate>
</asp:TemplateColumn>
Here is my codebehind itemdatabound event:
Sub dGridAvailableDocuments_Bound(ByVal sender As Object, ByVal e As
DataGridItemEventArgs)
If cBoxDocDetails.Checked Then
e.Item.FindControl("pnlDocumentDetailsGrid").Visible = True
End If
End Sub
Thanks
Manny