Code:
dv = New DataView(ds.Tables(0))
GridView1.DataSource = dv
GridView1.DataBind()
Dim bIsGridEmpty As Boolean = True
For j As Integer = 0 To GridView1.Rows.Count - 1
If GridView1.Rows(j).Cells(0).Text <> String.Empty Then
bIsGridEmpty = False
GridView1.DeleteRow(j)
'GridView1.Rows(j).Visible = False
' GridView1.Rows(j).Controls.Clear()
End If
GridView1.DeleteRow(j) is not working.No errors. But The row is still showing.
If cell(0) is empty then I wanto delete the entire row. Anything more I need to do?
Thanks for the help
(Rate)
dv = New DataView(ds.Tables(0))
GridView1.DataSource = dv
GridView1.DataBind()
Dim bIsGridEmpty As Boolean = True
For j As Integer = 0 To GridView1.Rows.Count - 1
If GridView1.Rows(j).Cells(0).Text <> String.Empty Then
bIsGridEmpty = False
GridView1.DeleteRow(j)
'GridView1.Rows(j).Visible = False
' GridView1.Rows(j).Controls.Clear()
End If
GridView1.DeleteRow(j) is not working.No errors. But The row is still showing.
If cell(0) is empty then I wanto delete the entire row. Anything more I need to do?
Thanks for the help
(Rate)