Visual Basic Foro

Programación => Visual Basic 6 => Mensaje iniciado por: obethermy en Junio 13, 2017, 10:17:51 am

Título: SOLUCION DE SELECCIONAR TODO EL CONTENIDO DE UNA CELDA DEL DATAGRID1
Publicado por: obethermy en Junio 13, 2017, 10:17:51 am
NOTAS DE RECUERDOS

Código: (VB) [Seleccionar]

Private Sub Form_Load()
 DataGrid1.MarqueeStyle = dbgFloatingEditor
END SUB

Private Sub DataGrid1_RowColChange(LastRow As Variant, ByVal LastCol As Integer)
 If Not IsNull(LastRow) Then
  DataGrid1.EditActive = True
  DataGrid1.SelStart = 0
  DataGrid1.SelLength = Len(DataGrid1.Columns(DataGrid1.Col).Text)
 End If
End Sub