Hello there,
I try to define the properties font-size and font-bold of the pager of a
gridview using the pagerstyle, but the settings are not appleyd at run time.
What could be the reason for this?
I am very appreciated for your help.
Kamen
Here is the ASPX-code:
<asp:GridView ID="gvMailingPe rsons" style="Z-INDEX: 106;
LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" BorderColor="#9 99999"
BorderStyle="No tSet" BackColor="Whit e" CellPadding="3" GridLines="Vert ical"
AutoGenerateCol umns="False" DataSource="<%# DS_MailingPerso ns %>"
Height="8px" Width="990px" CssClass="grid" AllowSorting="t rue"
AllowPaging="tr ue" PageSize="50" PagerSettings-Position=Bottom
DataKeyNames="K ontaktNr">
<SelectedRowSty le Font-Bold="True"></SelectedRowStyl e>
<AlternatingRow Style
CssClass="grid_ AlternatingItem "></AlternatingRowS tyle>
<RowStyle CssClass="grid_ Item"></RowStyle>
<HeaderStyle Wrap="False" ForeColor="Whit e" BorderStyle="No ne"
CssClass="grid_ Header"></HeaderStyle>
<Columns>
<asp:BoundFie ld DataField="Kont aktNr" SortExpression= "KontaktNr"
Visible="False" ></asp:BoundField>
<asp:TemplateFi eld HeaderText="Sel ected">
<ItemTemplate >
<asp:CheckBox id="cbSelectedR ecipient" runat="server"
Checked="False" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateFie ld>
<asp:ButtonFiel d CommandName="eM ail" HeaderText="E-Mail"
SortExpression= "EMail" DataTextField=" EMail"></asp:ButtonField >
</Columns>
<PagerStyle ForeColor="Whit e" Font-Bold=true Font-Size=11px
Font-Names=Verdana></PagerStyle>
<PagerSetting s
FirstPageImageU rl="~/Res/PrevYear.ico" FirstPageText=" First"
LastPageImageUr l="~/Res/NextYear.ico"
LastPageText="L ast" Mode="NumericFi rstLast" />
</asp:GridView>
I try to define the properties font-size and font-bold of the pager of a
gridview using the pagerstyle, but the settings are not appleyd at run time.
What could be the reason for this?
I am very appreciated for your help.
Kamen
Here is the ASPX-code:
<asp:GridView ID="gvMailingPe rsons" style="Z-INDEX: 106;
LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" BorderColor="#9 99999"
BorderStyle="No tSet" BackColor="Whit e" CellPadding="3" GridLines="Vert ical"
AutoGenerateCol umns="False" DataSource="<%# DS_MailingPerso ns %>"
Height="8px" Width="990px" CssClass="grid" AllowSorting="t rue"
AllowPaging="tr ue" PageSize="50" PagerSettings-Position=Bottom
DataKeyNames="K ontaktNr">
<SelectedRowSty le Font-Bold="True"></SelectedRowStyl e>
<AlternatingRow Style
CssClass="grid_ AlternatingItem "></AlternatingRowS tyle>
<RowStyle CssClass="grid_ Item"></RowStyle>
<HeaderStyle Wrap="False" ForeColor="Whit e" BorderStyle="No ne"
CssClass="grid_ Header"></HeaderStyle>
<Columns>
<asp:BoundFie ld DataField="Kont aktNr" SortExpression= "KontaktNr"
Visible="False" ></asp:BoundField>
<asp:TemplateFi eld HeaderText="Sel ected">
<ItemTemplate >
<asp:CheckBox id="cbSelectedR ecipient" runat="server"
Checked="False" ></asp:CheckBox>
</ItemTemplate>
</asp:TemplateFie ld>
<asp:ButtonFiel d CommandName="eM ail" HeaderText="E-Mail"
SortExpression= "EMail" DataTextField=" EMail"></asp:ButtonField >
</Columns>
<PagerStyle ForeColor="Whit e" Font-Bold=true Font-Size=11px
Font-Names=Verdana></PagerStyle>
<PagerSetting s
FirstPageImageU rl="~/Res/PrevYear.ico" FirstPageText=" First"
LastPageImageUr l="~/Res/NextYear.ico"
LastPageText="L ast" Mode="NumericFi rstLast" />
</asp:GridView>
Comment