473,480 Members | 1,820 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

DataGrid Fonts does not change

Hi All,

I am using ASP.NET 2.0 Themes for applying styles to DataGrid, where I have
the following definition:
<asp:DataGrid runat="server" Font-Name="Verdana" ForeColor="Blue"
Font-Size="6px" BackColor="#CCCCCC"
BorderWidth="2pt" BorderStyle="Solid" BorderColor="#CCCCCC"
GridLines="None" HorizontalAlign="Left"
VerticalAlign="Center">
<PagerStyle ForeColor="#FFFFFF" BackColor="#CCCCCC"></PagerStyle>
<AlternatingItemStyle Font-Name="Verdana" Font-Size="6px"
HorizontalAlign="Left" VerticalAlign="Middle" BackColor="#EEEEEE"
ForeColor="#000000"></AlternatingItemStyle>
<EditItemStyle ForeColor="#FFFFFF" BackColor="#FFFFE0"
BorderColor="#FFFFFF"></EditItemStyle>
<FooterStyle ForeColor="#FFFFFF" BackColor="#AAAAAA"></FooterStyle>
<ItemStyle HorizontalAlign="Left" Font-Name="Verdana"
VerticalAlign="Middle" Font-Size="6px" ForeColor="#000000"
BackColor="#FFFFFF"></ItemStyle>
<HeaderStyle ForeColor="#FFFFFF" Font-Bold="True"
BackColor="#5050A0"></HeaderStyle>
</asp:DataGrid>

Now here even though I have font size defined as Verdana-6 I get Verdana-9
font.Interesting thing is that I have EnableTheming to TRUE For each of my
DataGrids and still thie behaviour, To cross-check I made EnableTheming to
FALSE for one of the Grids and customized that Grid and everything worked
except my Font which still remained at Verdana-9 evn though I had set it as
Arial-7.

Please help me what could be the problem?

Thanks,

Shell
Jan 4 '06 #1
0 1113

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

14
1474
by: Cartel | last post by:
Hello, I wish to modify the dimension of the font within a given table (that is, not yet in the whole page); when I hit a button, the font's size increases by 1 point; another button decreases it...
4
2603
by: Sam | last post by:
Is there a way to display Asian fonts in Access 97? If not, how about subsequent versions? One thought is I was able to display Asian fonts in Visual Basic using a browser control, which in turn...
0
1135
by: Richard | last post by:
Does anyone have a best practices object model for the properties and methods that would typically be involved with the GDI painting, rendering, etc. aspect of this control. Classes surely to be...
1
1875
by: Jason | last post by:
Does anybody here have any sites or information about programming a VB.NET UI with 120DPI fonts. There are a lot of form size properties that seem to go way out of whack when you change the font...
5
1808
by: Dave | last post by:
In a VB.NET application, I have a datagrid that I export to an Excel spreadsheet like this: ' Set the content type to Excel Response.ContentType = "application/vnd.ms-excel" Dim tw As New...
1
1367
by: Richard | last post by:
Does anyone have a best practices object model for the properties and methods that would typically be involved with the GDI painting, rendering, etc. aspect of this control. Classes surely to be...
2
3473
by: Ryan Liu | last post by:
Can someone give a sample to prevent a row from being deleted in a datatable? I tried e.Row.RejectChanges(); in dt_RowDeleting() but seems does not work. I need verify if there other data...
57
3594
by: Chris Tomlinson | last post by:
Hi all, Hope someone is able to help. I notice when I design a basic HTML page, it is affected if a WinXP user has Large Fonts set in their Control Panel. However some pages, e.g....
12
2320
by: ctclibby | last post by:
Hi all Have a customer that wants a specific font included in her web page design; Comic Sans MS. This is one of the MS core fonts. The problem I have is that some of the *nix browsers do NOT...
0
7033
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
6903
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7071
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
6726
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
6861
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
4763
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
2987
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
2974
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1291
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.