cs_pcvesoul
Messages postés123Date d'inscriptionvendredi 21 janvier 2005StatutMembreDernière intervention25 juillet 2007
-
3 juin 2005 à 09:10
gallyhc
Messages postés386Date d'inscriptionsamedi 4 octobre 2008StatutMembreDernière intervention19 février 2018
-
3 juin 2005 à 15:03
Bonjour.
Comment fait-on pour supprimer une ligne d'une FlexGrid. J'ai essayé : Grille.RemoveItem(Grille.index) mais ça ne marche pas.
Merci d'avance pour vos réponses.
gallyhc
Messages postés386Date d'inscriptionsamedi 4 octobre 2008StatutMembreDernière intervention19 février 20182 3 juin 2005 à 10:49
Bonjour,
Cette fonction devrai vous aidez un peu a la réalisation de ce que vous voulez faire...
Private Sub SetEraseLine()
' Déclaration des variables.
Dim lngX As Long
Dim lngY As Long
Dim lngColor As Long
Dim strTemps As String
With mfgAnnuaire
If .Rows > 1 Then
If txtAnnuaire.Visible Then
txtAnnuaire.Visible = False
End If
.Redraw = False
For lngY = .RowSel To .Rows - 2
For lngX = 1 To .Cols - 1
.Col = lngX
.Row = lngY + 1
lngColor = .CellForeColor
strTemps = .Text
.Col = lngX
.Row = lngY
If .Text <> strTemps Then
.Text = strTemps
End If
If .CellForeColor <> lngColor Then
.CellForeColor = lngColor
End If
If lngX > 2 Then
.CellAlignment = flexAlignCenterCenter
End If
If lngX = .Cols - 1 Then
.CellFontBold = True
End If
Next lngX
Next lngY
.Rows = .Rows - 1
.Redraw = True
End If
End With