DataGrid DoublClick dos'nt Response
-
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. :((
-
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. :((
1.Firstly,
DoubleClick
event should fire, without any doubt. I do not find any problem in it. 2.Click
orDoubleClick
Event Handler of theDataGrid
or otherControls
hasEventArg
argument, you would not be getting the colum number / row number information from theEventArg
. You should use eitherMouseDown
orMouseUp
event Handler which hasMouseEventArgs
in the arguments.MouseDown
Event andHitTest
method will get you the desired. Refer the below link for details. DataGrid HitTest Method[^]