Quantcast
Viewing all articles
Browse latest Browse all 12583

Change the visible status for row of Datagridview (VB.net)

I try to implement collapse/expand rows by change the "visible" status.

1. For i As Integer = startIndex To endIndex ' collapse 
            Me.dgv.Rows(i).Visible = false
Next

2. For i As Integer = startIndex To endIndex ' expand
            Me.dgv.Rows(i).Visible = true
Next

The rows are showed normally. 

Image may be NSFW.
Clik here to view.

But after collapse once, I try to expand it. But there are a few only one line showed normally.

Image may be NSFW.
Clik here to view.

What causes the issue? Do I need to set any properties for this?

Any clues?

Thanks

 

Viewing all articles
Browse latest Browse all 12583

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>