Click here to Skip to main content
15,888,527 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
C#
For rowIndex As Integer = GridView01.Rows.Count - 2 To 0 Step -1
        Dim gvRow As GridViewRow = GridView01.Rows(rowIndex)
        Dim gvPreviousRow As GridViewRow = GridView01.Rows(rowIndex + 1)
       For cellCount As Integer = 0 To gvRow.Cells.Count - 1
          If gvRow.Cells(cellCount).Text = gvPreviousRow.Cells(cellCount).Text Then
              If gvPreviousRow.Cells(cellCount).RowSpan < 2 Then
                   gvRow.Cells(cellCount).RowSpan = 2
              Else
                 gvRow.Cells(cellCount).RowSpan = gvPreviousRow.Cells(cellCount).RowSpan + 1
              End If
                gvPreviousRow.Cells(cellCount).Visible = False
            End If
        Next
    Next

I am having CheckBox on O row.

Help me

Regards,
Nirmal
Posted
Updated 25-Aug-13 22:52pm
v2
Comments
Thanks7872 26-Aug-13 4:51am    
Where is the question? This makes me think of what to answer.
Keerthi Kumar(Andar) 26-Aug-13 5:05am    
In windows or web?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900