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. Suggest me Datagrid view event

Suggest me Datagrid view event

Scheduled Pinned Locked Moved C#
cssdatabase
9 Posts 4 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.
  • D Offline
    D Offline
    deepseeindeepsy
    wrote on last edited by
    #1

    Hello Experts!! I am scanning barcode and display it into grid cell,Now i want to check that barcode is already present or scanned in same grid.I am not saving data into database. So please suggest me event for same action. e.g. no. name address 1 kidya U.S. 2 Sam U.K. if i scan 1 again then it must show msg "No. already scanned"

    M 1 Reply Last reply
    0
    • D deepseeindeepsy

      Hello Experts!! I am scanning barcode and display it into grid cell,Now i want to check that barcode is already present or scanned in same grid.I am not saving data into database. So please suggest me event for same action. e.g. no. name address 1 kidya U.S. 2 Sam U.K. if i scan 1 again then it must show msg "No. already scanned"

      M Offline
      M Offline
      Mycroft Holmes
      wrote on last edited by
      #2

      So before you add a scan you loop through the existing row/cells and check for existing records.

      Never underestimate the power of human stupidity RAH

      D 1 Reply Last reply
      0
      • M Mycroft Holmes

        So before you add a scan you loop through the existing row/cells and check for existing records.

        Never underestimate the power of human stupidity RAH

        D Offline
        D Offline
        deepseeindeepsy
        wrote on last edited by
        #3

        tell me event for that.i tried in cellEnter and cellLeave event but didn't work.

        M N 2 Replies Last reply
        0
        • D deepseeindeepsy

          tell me event for that.i tried in cellEnter and cellLeave event but didn't work.

          M Offline
          M Offline
          Mycroft Holmes
          wrote on last edited by
          #4

          How are you adding the records

          Never underestimate the power of human stupidity RAH

          N D 2 Replies Last reply
          0
          • M Mycroft Holmes

            How are you adding the records

            Never underestimate the power of human stupidity RAH

            N Offline
            N Offline
            Nagy Vilmos
            wrote on last edited by
            #5

            Mycroft Holmes wrote:

            Never underestimate the power of human stupidity

            You've ignored your own warning! :laugh:


            Panic, Chaos, Destruction. My work here is done.

            M L 2 Replies Last reply
            0
            • D deepseeindeepsy

              tell me event for that.i tried in cellEnter and cellLeave event but didn't work.

              N Offline
              N Offline
              Nagy Vilmos
              wrote on last edited by
              #6

              No, he's not suggesting hooking into an event. BEFORE adding a new row, ITERATE through the current content and CHECK for the DUPLICATE. Now, somewhere you have a line of code along the lines of:

              Wibble hatstand = barcode.Read();
              !! CHECK HERE !!
              dataGrid.Add(hatstand);


              Panic, Chaos, Destruction. My work here is done.

              1 Reply Last reply
              0
              • N Nagy Vilmos

                Mycroft Holmes wrote:

                Never underestimate the power of human stupidity

                You've ignored your own warning! :laugh:


                Panic, Chaos, Destruction. My work here is done.

                M Offline
                M Offline
                Mycroft Holmes
                wrote on last edited by
                #7

                Slow afternoon and I've brick walled it with some WCF I'm fighting.

                Never underestimate the power of human stupidity RAH

                1 Reply Last reply
                0
                • M Mycroft Holmes

                  How are you adding the records

                  Never underestimate the power of human stupidity RAH

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

                  i am just scanning barcode then according to same barcode i am fetching record from sql and then show it on grid cell.So i want to ignore duplicate records.

                  1 Reply Last reply
                  0
                  • N Nagy Vilmos

                    Mycroft Holmes wrote:

                    Never underestimate the power of human stupidity

                    You've ignored your own warning! :laugh:


                    Panic, Chaos, Destruction. My work here is done.

                    L Offline
                    L Offline
                    Luc Pattyn
                    wrote on last edited by
                    #9

                    I prefer the original: Soha alábecsül a erő -ból emberi butaság :)

                    Luc Pattyn [Forum Guidelines] [My Articles]


                    The quality and detail of your question reflects on the effectiveness of the help you are likely to get. Show formatted code inside PRE tags, and give clear symptoms when describing a problem.


                    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