J'ai donc flexgrid dans mon projet vb6 sur lequel je travaille. Il a des noms sur chaque ligne, et j'ai un menu déroulant afin que l'utilisateur puisse sélectionner le nom pour lequel ils veulent voir plus d'informations, voici ce que j'ai.Afficher uniquement une ligne après la recherche. flexgrid vb6
Dim target_name As String
Dim r As Integer
' Get the name.
target_name = Combo1
If Len(target_name) = 0 Then Exit Sub
' Search for the name, skipping the column heading row.
target_name = LCase$(target_name)
For r = 1 To MSFlexGrid1.Rows - 1
If LCase$(MSFlexGrid1.TextMatrix(r, 0)) = _
target_name Then
' We found the target. Select this row.
MSFlexGrid1.Row = r
MSFlexGrid1.RowSel = r
MSFlexGrid1.Col = 0
MSFlexGrid1.ColSel = MSFlexGrid1.Cols - 1
' Make the row visible.
MSFlexGrid1.TopRow = r
Exit Sub
End If
Next r
Cela fonctionne bien, mais il montre tout en dessous de ce nom aussi, je voudrais à singulariser seul le nom sélectionné. Toute aide serait géniale.