Gridview Double Click Edit Row

  понедельник 03 декабря
      64

Sep 06, 2009  How do I add a row double-click event handler to ListView/GridView?NET Framework. I have a ListView using a GridView as its view. How to I add a handler to pick up a row double-click on the GridView? My code-behind is C#. Tuesday, March 21, 2006 7:39 PM. Hello All, My Problem is when i double click on gridview row then get data into TextBox I don't use Select event in my Gridview control Framework 4.0 C#.

I am trying to create an event that will make it so that when any cell in dataGridView1 is double-clicked, it will run; XmlDataDocument xmldataHQ = new XmlDataDocument(); xmldataHQ.DataSet.ReadXml(textBox1.Text); DataSet dsHQ = new DataSet('Stats'); dsHQ = xmldataHQ.DataSet; dataGridView2.DataSource = dsHQ.DefaultViewManager; dataGridView2.DataMember = 'StatVal'; In order to load xml file into a second dataGridView. The eventual hope is to make a single click select the row, and when double clicked, have just that row sent to a second dataGridView. Not sure if that makes any sense. Product not supported on this os gta 3 windows vista.

Thanks for the replies.

[VB.NET] Private Sub gridView1_MouseDown( ByVal sender As Object, ByVal e As System.Windows.Forms.MouseEventArgs) Dim view As GridView = TryCast(sender, GridView) Dim hitInfo As GridHitInfo = view.CalcHitInfo(e.Location) If hitInfo.InRowCell Then view.FocusedRowHandle = hitInfo.RowHandle view.FocusedColumn = hitInfo.Column DXMouseEventArgs.GetMouseArgs(e).Handled = True If e.Clicks = 2 AndAlso e.Button = System.Windows.Forms.MouseButtons.Left Then view.ShowEditor() End If End If End Sub Let me know if this approach is what you need.