E
Eagle
Okay, I know you can set up a grid in html (see code below), but I want to
be able to do it dynamically, can someone help with the syntax? I've tried:
dg.Font = "Microsoft Sans Serif"
dg.Font.Name="Microsoft Sans Serif"
dg.Font.Names="Microsoft Sans Serif"
dg.Font.Size="8pt"
dg.Font.Size.unit=??????
Can you tell me how to do all of the below in code behind? Thanks.
<asp:datagrid id=dg runat="server"
EnableViewState=True BorderStyle="Double" GridLines="Horizontal"
BorderWidth="3px" BorderColor="#ccbccc" BackColor="White" CellPadding="4"
AutoGenerateColumns="False">
<FooterStyle ForeColor="#ccbccc" BackColor="White">
</FooterStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#339966">
</SelectedItemStyle>
<EditItemStyle ForeColor="Black" BackColor="Silver" CssClass="DDL">
</EditItemStyle>
<ItemStyle ForeColor="#333333" BackColor="White">
</ItemStyle>
<HeaderStyle Font-Underline="True" Font-Bold="True" Wrap="False"
ForeColor="White" BackColor="#cccccc">
</HeaderStyle>
be able to do it dynamically, can someone help with the syntax? I've tried:
dg.Font = "Microsoft Sans Serif"
dg.Font.Name="Microsoft Sans Serif"
dg.Font.Names="Microsoft Sans Serif"
dg.Font.Size="8pt"
dg.Font.Size.unit=??????
Can you tell me how to do all of the below in code behind? Thanks.
<asp:datagrid id=dg runat="server"
EnableViewState=True BorderStyle="Double" GridLines="Horizontal"
BorderWidth="3px" BorderColor="#ccbccc" BackColor="White" CellPadding="4"
AutoGenerateColumns="False">
<FooterStyle ForeColor="#ccbccc" BackColor="White">
</FooterStyle>
<SelectedItemStyle Font-Bold="True" ForeColor="White" BackColor="#339966">
</SelectedItemStyle>
<EditItemStyle ForeColor="Black" BackColor="Silver" CssClass="DDL">
</EditItemStyle>
<ItemStyle ForeColor="#333333" BackColor="White">
</ItemStyle>
<HeaderStyle Font-Underline="True" Font-Bold="True" Wrap="False"
ForeColor="White" BackColor="#cccccc">
</HeaderStyle>