473,651 Members | 2,461 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 1176

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...
1
8460
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
8576
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7296
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
6157
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
5609
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4143
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4281
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
1906
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1585
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.