Escribo para que me den una mano con como hacer para que al escribir en un textobox se filtre los datos en un datagrid y estando en el textbox al pulsar las teclas flecha arriba, flecha abajo, repág, avpág se desplace en las filas del datagrid (ojo sin salir del textbox).
Yo lo he hecho pero el tema es que no se ve que la fila completa del datagrid se pinte indicando que esta seleccionada una fila, espero dejarme entender. Les mostrare mi codigo y por favor ayudenme a como mejorarlo o que estoy haciendo mal.
Código
¿Que me esta haciendo falta o que estoy haciendo mal?, ayudenme por favor
Private sub txtData_Change() If trim(txtData.Text) <> "" Then Set RstData = Cnn.Execute("Select * From Productos Where Nombre Like '" & Trim(txtData.Text) & "%'" Set dg.DataSource=RstData If RstData.RecordCount > 0 then dg.visible = True dg.SetFocus Else dg.visible = False End If End if End Sub Private Sub dg_GotFocus() 'Refresco el DataGrid y Regreso el Foco al txtData dg.Refresh txtData.SetFocus End Sub
Saludos
9tnix
Siempre usar etiquetas [code](codigo)[/code]