Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DblClick() event on Datagrid

Status
Not open for further replies.

herascu

Programmer
Apr 29, 2003
3
US
Does anyoane know how it's working double click event on a datagrid? This event it's fire only when I double click on the header of row or column, but not when I double click on the record.
I appreciate if somebody can help me with this issue.

Thank you,
nh
 
When the double_click event is fired perform the code for the current row selected.
 
I have a DataGrid populate with records from a Adodc recordset object with a connection to SQl server.
The DataGrid object is Microsoft DataGrid Control 6.0 (SP5)(OLEDB). I have a text object on the form and on the DblClick event of DataGrid1 control I have this code:

Private Sub DataGrid1_DblClick()
Text1.Text = "Double click"
End Sub

The event is fired only if I do a double click on the row marker or out of list. The wide of grid is biger then the colunms's wide. I have only 2 columns, for test. I don't know what's wrong. Nothin is happend if I do a double click on the records.

10x,
nh
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top