CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2007
    Posts
    1

    DataGrid Cell with multiple font styles

    Hi,


    First post guys. I have a Datagrid in a C# app. I want to format a single Cell so that it has multiple Font styles. EG. I want a word to be Bold and the rest to be normal text in a single cell. Is this even possible? Thanks for your help

  2. #2
    Join Date
    Jun 2003
    Location
    Toronto
    Posts
    805

    Re: DataGrid Cell with multiple font styles

    you would have to inject html into the string your putting into the cell

    so if your string was "This is my great string" and you wanted great to be bold you would first have to get the string and insert <b> tags into it.

    "This is my <b>great</b> string.

    then put that into the Datagrid Cell

    hth,
    mcm
    rate my posts!
    mcm

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured