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 / C++ / MFC
  4. True DBGrid in VC++

True DBGrid in VC++

Scheduled Pinned Locked Moved C / C++ / MFC
c++databasetutorialquestion
3 Posts 2 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.
  • L Offline
    L Offline
    liur17
    wrote on last edited by
    #1

    Hi, I try to translate text to text in True DBGrid control, but it seems not work in VC++, my code list below: .... CValueItems oValueItems; oValueItems = m_CtrlTDBG.GetColumns().GetItem(&index).GetValueItems(); CValueItemDisp* pValueItemDisp = new CValueItemDisp(); pValueItemDisp->SetValue(old_value); pValueItemDisp->SetDisplayValue(new_value); oValueItems.Add((LPDISPATCH)pValueItemDisp); oValueItems.SetTranslate(TRUE); .... I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!

    T 1 Reply Last reply
    0
    • L liur17

      Hi, I try to translate text to text in True DBGrid control, but it seems not work in VC++, my code list below: .... CValueItems oValueItems; oValueItems = m_CtrlTDBG.GetColumns().GetItem(&index).GetValueItems(); CValueItemDisp* pValueItemDisp = new CValueItemDisp(); pValueItemDisp->SetValue(old_value); pValueItemDisp->SetDisplayValue(new_value); oValueItems.Add((LPDISPATCH)pValueItemDisp); oValueItems.SetTranslate(TRUE); .... I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!

      T Offline
      T Offline
      ThatsAlok
      wrote on last edited by
      #2

      liur17 wrote:

      I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!

      what type of TrueDB grid are using.... UnBounded or bounded

      "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

      cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

      L 1 Reply Last reply
      0
      • T ThatsAlok

        liur17 wrote:

        I don't know how to use the function CValueItems.Add(LPDISPATCH vItem), someone can give me any suggestion? Thanks!

        what type of TrueDB grid are using.... UnBounded or bounded

        "Opinions are neither right nor wrong. I cannot change your opinion. I can, however, change what influences your opinion." - David Crow

        cheers, Alok Gupta VC Forum Q&A :- I/ IV Support CRY- Child Relief and you

        L Offline
        L Offline
        liur17
        wrote on last edited by
        #3

        Thanks for your reply. I use True OLE DataGrid 7, using bound mode. Looking forward to your instruction, Thank you in advance.

        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