G
Guest
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="gvMailingPersons" style="Z-INDEX: 106;
LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" BorderColor="#999999"
BorderStyle="NotSet" BackColor="White" CellPadding="3" GridLines="Vertical"
AutoGenerateColumns="False" DataSource="<%# DS_MailingPersons %>"
Height="8px" Width="990px" CssClass="grid" AllowSorting="true"
AllowPaging="true" PageSize="50" PagerSettings-Position=Bottom
DataKeyNames="KontaktNr">
<SelectedRowStyle Font-Bold="True"></SelectedRowStyle>
<AlternatingRowStyle
CssClass="grid_AlternatingItem"></AlternatingRowStyle>
<RowStyle CssClass="grid_Item"></RowStyle>
<HeaderStyle Wrap="False" ForeColor="White" BorderStyle="None"
CssClass="grid_Header"></HeaderStyle>
<Columns>
<asp:BoundField DataField="KontaktNr" SortExpression="KontaktNr"
Visible="False"></asp:BoundField>
<asp:TemplateField HeaderText="Selected">
<ItemTemplate>
<asp:CheckBox id="cbSelectedRecipient" runat="server"
Checked="False"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField CommandName="eMail" HeaderText="E-Mail"
SortExpression="EMail" DataTextField="EMail"></asp:ButtonField>
</Columns>
<PagerStyle ForeColor="White" Font-Bold=true Font-Size=11px
Font-Names=Verdana></PagerStyle>
<PagerSettings
FirstPageImageUrl="~/Res/PrevYear.ico" FirstPageText="First"
LastPageImageUrl="~/Res/NextYear.ico"
LastPageText="Last" Mode="NumericFirstLast" />
</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="gvMailingPersons" style="Z-INDEX: 106;
LEFT: 0px; POSITION: absolute; TOP: 0px" runat="server" BorderColor="#999999"
BorderStyle="NotSet" BackColor="White" CellPadding="3" GridLines="Vertical"
AutoGenerateColumns="False" DataSource="<%# DS_MailingPersons %>"
Height="8px" Width="990px" CssClass="grid" AllowSorting="true"
AllowPaging="true" PageSize="50" PagerSettings-Position=Bottom
DataKeyNames="KontaktNr">
<SelectedRowStyle Font-Bold="True"></SelectedRowStyle>
<AlternatingRowStyle
CssClass="grid_AlternatingItem"></AlternatingRowStyle>
<RowStyle CssClass="grid_Item"></RowStyle>
<HeaderStyle Wrap="False" ForeColor="White" BorderStyle="None"
CssClass="grid_Header"></HeaderStyle>
<Columns>
<asp:BoundField DataField="KontaktNr" SortExpression="KontaktNr"
Visible="False"></asp:BoundField>
<asp:TemplateField HeaderText="Selected">
<ItemTemplate>
<asp:CheckBox id="cbSelectedRecipient" runat="server"
Checked="False"></asp:CheckBox>
</ItemTemplate>
</asp:TemplateField>
<asp:ButtonField CommandName="eMail" HeaderText="E-Mail"
SortExpression="EMail" DataTextField="EMail"></asp:ButtonField>
</Columns>
<PagerStyle ForeColor="White" Font-Bold=true Font-Size=11px
Font-Names=Verdana></PagerStyle>
<PagerSettings
FirstPageImageUrl="~/Res/PrevYear.ico" FirstPageText="First"
LastPageImageUrl="~/Res/NextYear.ico"
LastPageText="Last" Mode="NumericFirstLast" />
</asp:GridView>