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. How to read data from a gridline

How to read data from a gridline

Scheduled Pinned Locked Moved C / C++ / MFC
questioncssdatabasehelptutorial
10 Posts 6 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.
  • V Offline
    V Offline
    vc _fragrance
    wrote on last edited by
    #1

    Hi, i have created the grid lines using CListCtrl (report view) and inserted data from the database.Now i want to read the data by just clicking on it.How can I read it? Please help me. Thanks in advance. Tejaswini

    T V C 3 Replies Last reply
    0
    • V vc _fragrance

      Hi, i have created the grid lines using CListCtrl (report view) and inserted data from the database.Now i want to read the data by just clicking on it.How can I read it? Please help me. Thanks in advance. Tejaswini

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

      b more specfic in framing a question... ur question is not clear.....

      T 1 Reply Last reply
      0
      • T toogud

        b more specfic in framing a question... ur question is not clear.....

        T Offline
        T Offline
        toxcct
        wrote on last edited by
        #3

        toogud wrote:

        ur question is not clear.....

        may i tell you that your english writing neither ?


        TOXCCT >>> GEII power

        [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

        1 Reply Last reply
        0
        • V vc _fragrance

          Hi, i have created the grid lines using CListCtrl (report view) and inserted data from the database.Now i want to read the data by just clicking on it.How can I read it? Please help me. Thanks in advance. Tejaswini

          V Offline
          V Offline
          vc _fragrance
          wrote on last edited by
          #4

          I have used CListCtrl in report view and style as LVS_EX_GRIDLINES to get the gridlines.I succesfully got the grid lines.In the columns of the gird lines I inserted data from database. Now if I click on any of the row i want to get the data which is already in it . -- modified at 5:53 Wednesday 19th July, 2006

          1 Reply Last reply
          0
          • V vc _fragrance

            Hi, i have created the grid lines using CListCtrl (report view) and inserted data from the database.Now i want to read the data by just clicking on it.How can I read it? Please help me. Thanks in advance. Tejaswini

            C Offline
            C Offline
            Code_Zombie
            wrote on last edited by
            #5

            For reading data from the row(items) u can use getitemtext. Thanks

            V 1 Reply Last reply
            0
            • C Code_Zombie

              For reading data from the row(items) u can use getitemtext. Thanks

              V Offline
              V Offline
              vc _fragrance
              wrote on last edited by
              #6

              for using getItemText() method i have to pass the index of the item and subitem.But how can i know the index.(User may click any of the row item) Thank u.

              T D D 3 Replies Last reply
              0
              • V vc _fragrance

                for using getItemText() method i have to pass the index of the item and subitem.But how can i know the index.(User may click any of the row item) Thank u.

                T Offline
                T Offline
                toxcct
                wrote on last edited by
                #7

                MSDN[^]


                TOXCCT >>> GEII power

                [VisualCalc 3.0  updated ][Flags Beginner's Guide  new! ]

                1 Reply Last reply
                0
                • V vc _fragrance

                  for using getItemText() method i have to pass the index of the item and subitem.But how can i know the index.(User may click any of the row item) Thank u.

                  D Offline
                  D Offline
                  Dreamz
                  wrote on last edited by
                  #8

                  Use GetFirstSelectedItemPosition and GetNextSelectedItem

                  V 1 Reply Last reply
                  0
                  • D Dreamz

                    Use GetFirstSelectedItemPosition and GetNextSelectedItem

                    V Offline
                    V Offline
                    vc _fragrance
                    wrote on last edited by
                    #9

                    Thank u Dreamz, I got the solution based on u r idea.

                    1 Reply Last reply
                    0
                    • V vc _fragrance

                      for using getItemText() method i have to pass the index of the item and subitem.But how can i know the index.(User may click any of the row item) Thank u.

                      D Offline
                      D Offline
                      David Crow
                      wrote on last edited by
                      #10

                      tejaswini.g wrote:

                      But how can i know the index.(

                      It's passed to your LVN_ITEMCHANGED handler. You can also get it via GetNextItem().


                      "Money talks. When my money starts to talk, I get a bill to shut it up." - Frank

                      "Judge not by the eye but by the heart." - Native American Proverb

                      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