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. Datagrid cell double click

Datagrid cell double click

Scheduled Pinned Locked Moved C#
6 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.
  • T Offline
    T Offline
    Tyler45
    wrote on last edited by
    #1

    hello; i want to catch that user double clicks on filled cells on datagrid but there is no event for this, is there any idea for handle it! thanks

    T Mircea PuiuM 2 Replies Last reply
    0
    • T Tyler45

      hello; i want to catch that user double clicks on filled cells on datagrid but there is no event for this, is there any idea for handle it! thanks

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

      And one datagrid there is a cellcontentdoubleclick event but on other datagird doesnt exist. On second datagrid i have initilazed datacolumns manually from properties. is that problem

      1 Reply Last reply
      0
      • T Tyler45

        hello; i want to catch that user double clicks on filled cells on datagrid but there is no event for this, is there any idea for handle it! thanks

        Mircea PuiuM Offline
        Mircea PuiuM Offline
        Mircea Puiu
        wrote on last edited by
        #3

        If I remember correctly, the double click is actually broken down into 2 clicks: a click for the datagrid and another one for the datagrid cell. To achieve what you want, you either use a context menu (allowing the user to do multiple things, among them the action required by your double click), or you extend the datagrid class and try to capture the double click event.

        SkyWalker

        T 1 Reply Last reply
        0
        • Mircea PuiuM Mircea Puiu

          If I remember correctly, the double click is actually broken down into 2 clicks: a click for the datagrid and another one for the datagrid cell. To achieve what you want, you either use a context menu (allowing the user to do multiple things, among them the action required by your double click), or you extend the datagrid class and try to capture the double click event.

          SkyWalker

          T Offline
          T Offline
          Tyler45
          wrote on last edited by
          #4

          hi thanks for your reply my problem is, datagrid doesnt have cellcontentdoubleclick but datagridview has cellcontentdoubleclick. and i have to use datagrid. beucase i wrote 6,7 pages code i cannot change Now how can i use context menu i didnt use it before thanks best regards

          Mircea PuiuM 1 Reply Last reply
          0
          • T Tyler45

            hi thanks for your reply my problem is, datagrid doesnt have cellcontentdoubleclick but datagridview has cellcontentdoubleclick. and i have to use datagrid. beucase i wrote 6,7 pages code i cannot change Now how can i use context menu i didnt use it before thanks best regards

            Mircea PuiuM Offline
            Mircea PuiuM Offline
            Mircea Puiu
            wrote on last edited by
            #5

            Here is a good example[^].

            SkyWalker

            T 1 Reply Last reply
            0
            • Mircea PuiuM Mircea Puiu

              Here is a good example[^].

              SkyWalker

              T Offline
              T Offline
              Tyler45
              wrote on last edited by
              #6

              thanks ;) it is so usefull

              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