473,396 Members | 1,814 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

datatable columnname bold

2
Hi.
I have a datatable and have done some columns.
I want the columnname to be in bold. Iīve been looking on the internet for 5 hours now, but canīt find anything. Please help.

Expand|Select|Wrap|Line Numbers
  1. DataColumn column = new DataColumn();
  2.         column.ColumnName = "Svar";


//Anna
May 10 '10 #1
4 3667
donbock
2,426 Expert 2GB
There is no standard or portable way to make text bold. It depends on your output device or rendering program. How do you intend to view your data table? Is this decision up to you or are you constrained by somebody else's instructions?

One possibility is to output an html file with appropriate tags and then use a browser to view it.
tags = [b]tags[/ B] (no space between / and "B")
May 10 '10 #2
anina
2
@donbock
It will be shown on a website. Later on i write
row["Svar"] = alt.getValue();

this is all done in c#, nothing in .net so i canīt find any toturials.
iīve also tried to use FontSize but canīt make it work.
May 10 '10 #3
donbock
2,426 Expert 2GB
Maybe C# has fancy methods that simplify generation of HTML; but I'm a longtime C programmer, all brute-force and no subtlety.

You should have no trouble finding internet references for HTML tags. HTML files are entirely printable text.

Use a dumb text editor (that doesn't expand HTML tags) to manually edit your output file to insert the appropriate tags. Then view the file with a browser. Repeat until you get the effect you want. Then modify your program to embed those tags in the text output.
May 10 '10 #4
Banfa
9,065 Expert Mod 8TB
Moved to C# forum
May 10 '10 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

4
by: Aaron | last post by:
Hello, I have six textboxes that there text needs to be transferred to be datatable column names. I have tried 2 ways 1st way private void txtFine1_TextChanged(object sender,...
2
by: Newbie | last post by:
Im getting an exception: System.FormatException: Input string was not in a correct format. at System.Number.ParseInt32(String s, NumberStyles style, NumberFormatInfo info) at...
3
by: tomi | last post by:
Hi I have following problem. I have a datatable filled with some data. Each row holds its ID (column named "Row_ID") DataTable dtTable; I have a datagrid to which I assign this datatable....
1
by: M | last post by:
My problem is that AutogenerateColumns="false" does not work with the datatable I built from a hashtable. (Please don't ask why I'm pulling data from a database, putting it in a hashtable, then...
0
by: William F. Robertson, Jr. | last post by:
Either this is a bug, or it should be. DataTable table = new DataTable(); table.Columns.Add( "Base1", typeof( string ) ); table.Columns.Add( "Base2", typeof( string ) ); //these will not...
0
by: Chris Ericoli | last post by:
Hi, I am working with an 'in session' ado dataset with an asp.net application. My dataset is comprised of two tables, one of which maintains a few calculated datacolumns. For some reason these...
3
by: Jon | last post by:
I'm learning about datatables. When using the example provided by MS in the ..NET Framework Class Library for DATATABLE (see below) I get an error on line 3 that says "Type expected". Is something...
4
by: bordsby | last post by:
Situation: I am using an OleDbDataAdapter to fill a DataSet's DataTable with data from an Access database. The DataSet's DataTable is bound to a DataGrid. After the OleDbDataAdapter.Fill method...
1
by: macupryk | last post by:
I am not sure how to get a column from a datatable, I cannot use foreach. DataColumn dataColumn = DataColumn TEXTDT.Columns.ColumnName.Trim(); if (rows < TEXTDT.Rows.Count) // this will...
2
by: =?Utf-8?B?Sm9iIExvdA==?= | last post by:
How can I reconcile changes between two data table and create a subset of those changes. I have two data tables with same schema which gets populated from two different xml files. I want to get...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
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
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...
0
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...

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.