Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7085005
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 28, 20262026-05-28T07:22:18+00:00 2026-05-28T07:22:18+00:00

I have a DataTable with columns typeof(string) . I am adding strings to this

  • 0

I have a DataTable with columns typeof(string). I am adding strings to this table and I need to have some of text in bold. My string looks like that:

row["UserData"] = user.Name + "\n" + user.Description + "\n" + user.Number + "\t" + user.Date;

Is it possible to make user.Name in this code bold?

I am using .NET 4.0 and WPF.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-28T07:22:18+00:00Added an answer on May 28, 2026 at 7:22 am

    Strings are just text, if you want to format text you have multiple ways of doing so but i do not know of anything “native”. e.g. use XML markup around user.Name to encode the formatting as text, that then can be used by some control which displays it to adjust the rendering.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

i have a winform datagridview: DataTable table = new DataTable(); table.Columns.Add(Check, typeof(bool)); table.Columns.Add(User, typeof(string));
Let's say I have a DataTable: DataTable dt = new DataTable(); dt.Columns.Add(new DataColumn(Country, typeof(string)));
I have the following DataTable dt = new DataTable(); dt.Columns.Add(col1, typeof(string)); dt.Columns.Add(col2, typeof(string)); dt.Rows.Add(1,
i have a datatable: var dt = new DataTable(); dt.Columns.Add(new DataColumn(specimen, typeof(string))); dt.Columns.Add(new DataColumn(batch,
I'm using Visual Studio 2005 and have a DataTable with two columns and some
I have a Datatable with Id(guid) and Name(string) columns. I traverse through the data
Here is my datatable: DataTable CSVFile = new DataTable(); CSVFile.Columns.Add(Occurrence_Date, typeof(DateTime)); CSVFile.Columns.Add(Preanalytical_Before_Testing, typeof(string)); CSVFile.Columns.Add(Cup_Type,
I have write this code to create a gridview with 3 columns DataTable dt
i need to read files that look like this into a datatable: A02 BLANK031
I have the below data table DataTable dtEquityHoldings = new DataTable(EquityHoldings); dtEquityHoldings.Columns.Add(EquityHoldings); dtEquityHoldings.Columns.Add(PortfolioWeight(%)); dtEquityHoldings.Columns.Add(MarketValue,

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.