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 can i search an item in the MFCflexgrid?

how can i search an item in the MFCflexgrid?

Scheduled Pinned Locked Moved C / C++ / MFC
questioncsshelptutorial
8 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.
  • P Offline
    P Offline
    panthal
    wrote on last edited by
    #1

    hi, I have a msflexgrid with 2 columns and 25 rows(all with data in it) in my dialog.i'm also having a edit box in the same dialog above the flex grid.now wat i want is..if i type a name or a letter in the edit box the mouse pointer should go to that row that contains the name. for example if i hav 2 colums(name and rollno)in msflexgrid if i type "A" in the edit box,thn the mouse cursor should go to the row where that name column contains first letter as "A".Is there any function for getting the mouse pointer to our flexgrid? Anybody please help mi in this regard. thanks, panthal

    C 1 Reply Last reply
    0
    • P panthal

      hi, I have a msflexgrid with 2 columns and 25 rows(all with data in it) in my dialog.i'm also having a edit box in the same dialog above the flex grid.now wat i want is..if i type a name or a letter in the edit box the mouse pointer should go to that row that contains the name. for example if i hav 2 colums(name and rollno)in msflexgrid if i type "A" in the edit box,thn the mouse cursor should go to the row where that name column contains first letter as "A".Is there any function for getting the mouse pointer to our flexgrid? Anybody please help mi in this regard. thanks, panthal

      C Offline
      C Offline
      chandu004
      wrote on last edited by
      #2

      i think the same question is posted by you or your friend yesterday. refer here. http://www.codeproject.com/script/comments/forums.asp?msg=2293001&forumid=1647#xx2293001xx[^][^]

      P 1 Reply Last reply
      0
      • C chandu004

        i think the same question is posted by you or your friend yesterday. refer here. http://www.codeproject.com/script/comments/forums.asp?msg=2293001&forumid=1647#xx2293001xx[^][^]

        P Offline
        P Offline
        panthal
        wrote on last edited by
        #3

        hi, thanks chandu, but it's not useful to me. i'am using a flexgrid and a edit box in a dialog . i have 10 row data in the flex grid. example: first row first cell(0,0) containing data "raja" second row first cell(1,0) containing data "panthal" if i enter "panthal" in the edit box, the flexgrid cursor should be highlighted in the second. is it any function to implement it? please help me ,

        C 1 Reply Last reply
        0
        • P panthal

          hi, thanks chandu, but it's not useful to me. i'am using a flexgrid and a edit box in a dialog . i have 10 row data in the flex grid. example: first row first cell(0,0) containing data "raja" second row first cell(1,0) containing data "panthal" if i enter "panthal" in the edit box, the flexgrid cursor should be highlighted in the second. is it any function to implement it? please help me ,

          C Offline
          C Offline
          chandu004
          wrote on last edited by
          #4

          if it is MS flex grid, then, you can set your required cell using SetRow(row); and SetCol(col); i hope you would have to explain your task step by step such that, we can understand where exactly you are stuck up.

          P N 2 Replies Last reply
          0
          • C chandu004

            if it is MS flex grid, then, you can set your required cell using SetRow(row); and SetCol(col); i hope you would have to explain your task step by step such that, we can understand where exactly you are stuck up.

            P Offline
            P Offline
            panthal
            wrote on last edited by
            #5

            thank u very much chandu, your code is useful to me. but how can i get my mouse selection to that row? (not the cursor ) and the selected row should be highlighted with a color i'm waiting for your kind reply,

            1 Reply Last reply
            0
            • C chandu004

              if it is MS flex grid, then, you can set your required cell using SetRow(row); and SetCol(col); i hope you would have to explain your task step by step such that, we can understand where exactly you are stuck up.

              N Offline
              N Offline
              Nelek
              wrote on last edited by
              #6

              Up to which MFC version is this MFCFlexGrid available? I had to deal with the CListCtrl to make some tables and it was quite annoying at the beggining.I saw the FlexGrid in VB by a partner and was pretty easy to use but I didn't find anything in my doc (VC++ 6)

              Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you ;)

              C 1 Reply Last reply
              0
              • N Nelek

                Up to which MFC version is this MFCFlexGrid available? I had to deal with the CListCtrl to make some tables and it was quite annoying at the beggining.I saw the FlexGrid in VB by a partner and was pretty easy to use but I didn't find anything in my doc (VC++ 6)

                Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you ;)

                C Offline
                C Offline
                chandu004
                wrote on last edited by
                #7

                i frequently use msflex grid in vc 6.0. but you have to include it from components and controls into your project. good luck.

                -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

                N 1 Reply Last reply
                0
                • C chandu004

                  i frequently use msflex grid in vc 6.0. but you have to include it from components and controls into your project. good luck.

                  -------------------------------------------- Suggestion to the members: Please prefix your main thread subject with [SOLVED] if it is solved. thanks. chandu.

                  N Offline
                  N Offline
                  Nelek
                  wrote on last edited by
                  #8

                  Ahhhmmm, so it is an extra module. I was looking for it in the VStudio 6 package :doh: ehehehe, thanks

                  Greetings. -------- M.D.V. If something has a solution... Why do we have to worry about?. If it has no solution... For what reason do we have to worry about? Help me to understand what I'm saying, and I'll explain it better to you ;)

                  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