Vb

Que tal de antemano gcs.
Tengo un mshflexgrid conectado a un recordset de ado, el problema es cuando filtro, ya que cuando no encuentra ningún registro coincidente con lo filtrado el grid ya no me deja seleccionar algún renglón, lo que he hecho es volverle a asignar el recordset al grid y ni así he podido... Le doy un refresh y tampoco... Me tengo salir para que funcione otra vez el grid...

2 Respuestas

Respuesta
1
Checa las siguientes ligas:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mshflx98/dt_vbctlMSHFlexGridControl_P.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcmn98/html/vbprodatasourceactivexcontrols.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vb98/html/vbprorecordset.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mshflx98/html/vbctlmshflexgridcontrol.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mshflx98/html/vbmthclearflexgrid.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/mshflx98/html/vbmthclearstructurehflexgrid.asp
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/vbcmn98/html/vbmthrefreshmethodactivexcontrols.asp
Sugiero el método refresh del control. Pero como comentas, sugiero eliminar el datasource, refresh, asignar nuevamente el recordset al datasource y refresh.
Respuesta
1
Ya cerraste el recordset, y lo vuelves a abrir y lo asignas al mshflexgrid y le das refresh

Añade tu respuesta

Haz clic para o

Más respuestas relacionadas