473,651 Members | 2,835 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set the font color of different columns in datagrid

234
Hello, i am using VB.net 2003 to write a application now. It is a easy job
to linking the datagrid with database. However, my leader orders that the
font color of some data should be different.

Here is the layout created by html
Name
ID
Telephone

dsadsa
das
das

dasd
dsa
das


how to set the column' font color, please let me know about your ideas or
provide some helpful links

Thanks you
Roberto


Jul 21 '05 #1
0 1177

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

Similar topics

2
1740
by: kobeting | last post by:
Dear All, I would like to like that how I can set the font color of a specific column of a datagird. For example, my datagrid contains 4 columns and may rows, but I only want all column 2 data font color will be in Red and other data font color is still in blank. Thanks
3
7021
by: Robert Misiak | last post by:
Is it possible to have a different font in individual listView columns? When I do something like: ListViewItem lsi; .... lsi.SubItems.Font = new Font (lsi.SubItems.Font, lsi.Font.SubItems.Style | FontStyle.Bold); The entire line (all columns) of the list appears in bold. I just want the first item to be bold.
3
3044
by: Doug Swanson | last post by:
I need to create a report via a aspx page/datagrid and have the user be able to print it out and have certain fields have the 3of9 barcode font....is this possible in an aspx page (or for that matter html?) I know you can set the font of the page etc.. but can the font of a particular field in a datagrid be set? We do have a datagrid component that can export itself to Excel...is there something in Excel (template?) that can be used to set...
4
3487
by: tshad | last post by:
I am having trouble with links in my DataGrid. I have Links all over my page set to smaller and they are consistant all over the page in both Mozilla and IE, except for the DataGrid. Here is a snippet from my .css file: *************************** body { margin:0; padding:0;
1
2017
by: Blaine | last post by:
Pulling my hair out here! I have a datagrid with a number of bound columns (NOT template columns). When choosing to Edit, the textboxes appear, but the font is not the same as the original text (i.e., 8pt Tahoma). Anyone know how to change the Font size when the Edit box appears? I've tried setting up something with CSS and various changes in code, but I can't get anything to work. Perhaps I'm missing something simple?
2
11704
by: DraguVaso | last post by:
Hi, I'm looking for a nice way to format the cell of my datagrid according to some predefined 'rules'. I found a lot on the site of George shepherd, but it wasn't really what I was looking for: I found there: How can I change the font used in a Gridcell on a cell by cell or row by row basis. Wih this code I am able to change the Font/Background/... based on the position of the field (column and row). The problem is: it only changes...
0
319
by: 234 | last post by:
Hello, i am using VB.net 2003 to write a application now. It is a easy job to linking the datagrid with database. However, my leader orders that the font color of some data should be different. Here is the layout created by html Name ID Telephone dsadsa
1
1862
by: Blasting Cap | last post by:
I am having trouble changing the font for a PushButton control in a datagrid button column. I have seen several posts refer to styles and simple changes to the HTML for font changes but most of those referred to a LinkButton type of control. But in cases where someone is using the PushButton there are no posted solutions. Whenever these changes are made to the PushButton control they do not make any requested changes. I have seen one...
0
997
by: jemitch0 | last post by:
I have a datagrid with a checkbox in the first column and two columns following containing text. When the checkbox is checked, I need to have the font color changed. I can get this to work fine using oncheckedchanged and turning on the autopostback, my question is can I do this in javascript so I don't have to use the autopostback. I played around with passing the checkbox control (eg. oncheckedchanged(this) ), but cannot figure out how to...
0
8357
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8803
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8700
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8465
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
7298
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6158
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4285
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1910
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1588
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.