Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Formatting data in DataGridViewCell

Formatting data in DataGridViewCell

Scheduled Pinned Locked Moved C#
databasetutorialquestion
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • T Offline
    T Offline
    t4ure4n
    wrote on last edited by
    #1

    Hi I am working on a winForm application in which I am using DataGridView to display some data from database. I have to Format the data in the datagridviewcells like shown below i.e few letters made bold, a cell having multi line text etc ============================================================== Column1 | Column2 | Column 3 ============================================================== 454 | **Bold 1**:abdajkldjalkjd | sdfj asdhj | **Bold 2**:abdajkldjalkjd | 32 asd | **Bold 3**:abdajkldjalkjd | 2342 ============================================================== 454 |**Bold 1**:abdajkldjalkjd | sdfj asdhj |**Bold 2**:abdajkldjalkjd | 32 asd |**Bold 3**:abdajkldjalkjd | 2342 ============================================================== Can any one give me an idea how to do it..

    o O º(`'·.,(`'·., ?,.·''),.·'')º O o° »·'"`»* *? t4ure4n ?* *«·'"`« °o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°

    X B 2 Replies Last reply
    0
    • T t4ure4n

      Hi I am working on a winForm application in which I am using DataGridView to display some data from database. I have to Format the data in the datagridviewcells like shown below i.e few letters made bold, a cell having multi line text etc ============================================================== Column1 | Column2 | Column 3 ============================================================== 454 | **Bold 1**:abdajkldjalkjd | sdfj asdhj | **Bold 2**:abdajkldjalkjd | 32 asd | **Bold 3**:abdajkldjalkjd | 2342 ============================================================== 454 |**Bold 1**:abdajkldjalkjd | sdfj asdhj |**Bold 2**:abdajkldjalkjd | 32 asd |**Bold 3**:abdajkldjalkjd | 2342 ============================================================== Can any one give me an idea how to do it..

      o O º(`'·.,(`'·., ?,.·''),.·'')º O o° »·'"`»* *? t4ure4n ?* *«·'"`« °o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°

      X Offline
      X Offline
      Xmen Real
      wrote on last edited by
      #2

      i think its not possible, hmmm...you should make another column for that bold text

      TVMU^P[[IGIOQHG^JSH`A#@`RFJ\c^JPL>;"[,*/|+&WLEZGc`AFXc!L %^]*IRXD#@GKCQ`R\^SF_WcHbORY87??6?N8?BcRAV\Z^&SU~%CSWQ@#2 W_AD`EPABIKRDFVS)EVLQK)JKSQXUFYK[M`UKs*$GwU#(QDXBER@CBN% Rs0~53%eYrd8mt^7Z6]iTF+(EWfJ9zaK-i?TV.C\y -------------------------------------------------------- 128 bit encrypted signature, crack if you can

      1 Reply Last reply
      0
      • T t4ure4n

        Hi I am working on a winForm application in which I am using DataGridView to display some data from database. I have to Format the data in the datagridviewcells like shown below i.e few letters made bold, a cell having multi line text etc ============================================================== Column1 | Column2 | Column 3 ============================================================== 454 | **Bold 1**:abdajkldjalkjd | sdfj asdhj | **Bold 2**:abdajkldjalkjd | 32 asd | **Bold 3**:abdajkldjalkjd | 2342 ============================================================== 454 |**Bold 1**:abdajkldjalkjd | sdfj asdhj |**Bold 2**:abdajkldjalkjd | 32 asd |**Bold 3**:abdajkldjalkjd | 2342 ============================================================== Can any one give me an idea how to do it..

        o O º(`'·.,(`'·., ?,.·''),.·'')º O o° »·'"`»* *? t4ure4n ?* *«·'"`« °o O º(,.·''(,.·'' ?`'·.,)`'·.,)º O o°

        B Offline
        B Offline
        buchstaben
        wrote on last edited by
        #3

        try to use a richtextbox as cell renderer

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups