Bonjour,
qlq 1 peut m'aider à résoudre ce problm?
voici mon code:
Private Sub Button2_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button2.Click
For rowIndex As Integer = DataGrid1.Rows.Count - 2 To 0 Step -1
Dim gviewRow As GridViewRow = GridView1.Rows(rowIndex)
Dim gviewPreviousRow As GridViewRow = GridView1.Rows(rowIndex + 1)
For cellCount As Integer = 0 To gviewRow.Cells.Count - 1
If gviewRow.Cells(cellCount).Text = gviewPreviousRow.Cells(cellCount).Text Then
If gviewPreviousRow.Cells(cellCount).RowSpan < 2 Then
gviewRow.Cells(cellCount).RowSpan = 2
Else
gviewRow.Cells(cellCount).RowSpan = gviewPreviousRow.Cells(cellCount).RowSpan + 1
End If
gviewPreviousRow.Cells(cellCount).Visible = False
End If
Next
Next
End Sub
le msg qui s'affiche est: Type 'GridViewRow' non défini
Partager