Pregunta: | 61936 - COMO PORNER UN POPUPMENÚ EN UN DATAGRID |
Autor: | Yosainer Rodríguez Hernández |
necesito saber el codigo para porner un popupMenú en un DataGrid en el evento Datagrid1_MouseDown y que me selecione una fila al precionar el boton derecho del mouse o raton en el DataGrid este ejemplo lo hace en un control ListView. Private Sub LV_MouseDown(Button As Integer, Shift As Integer, x As Single, y As Single) Dim Item As ListItem Set Item = LV.HitTest(x, y) If Not Item Is Nothing And Button = vbRightButton Then Item.Selected = True Me.PopupMenu mnuEdicion End If End Sub Saludos al que me ayude. |