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 DoublClick dos'nt Response

DataGrid DoublClick dos'nt Response

Scheduled Pinned Locked Moved C#
help
2 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.
  • W Offline
    W Offline
    Wail A Salem
    wrote on last edited by
    #1

    Hi everybody I have a problem with DataGrid Control, That is: I try to extract the column number and the row number by double click anywhere on the Datagrid But there is no response by DoubleClick event when I try to DoublClick any Cell in the DataGrid ,the response occurs when I just click the Header Column or Header Row please can I get some help. :((

    J 1 Reply Last reply
    0
    • W Wail A Salem

      Hi everybody I have a problem with DataGrid Control, That is: I try to extract the column number and the row number by double click anywhere on the Datagrid But there is no response by DoubleClick event when I try to DoublClick any Cell in the DataGrid ,the response occurs when I just click the Header Column or Header Row please can I get some help. :((

      J Offline
      J Offline
      Jay Shankar
      wrote on last edited by
      #2

      1.Firstly, DoubleClick event should fire, without any doubt. I do not find any problem in it. 2.Click or DoubleClick Event Handler of the DataGrid or other Controls has EventArg argument, you would not be getting the colum number / row number information from the EventArg. You should use either MouseDown or MouseUp event Handler which has MouseEventArgs in the arguments. MouseDown Event and HitTest method will get you the desired. Refer the below link for details. DataGrid HitTest Method[^]

      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