David
David

Reputation: 830

Datagridview scrolling/last row problem (.Net Winforms)

I have a grid with 7 and half rows visible. I have managed to display the last row fully but the half row space after the last row does not repaint and shows whatever was there previously. Even if I drag another window over my form with the grid and then minimize it, the empty space shows content of the minimized window. I've tried Invalidate() but no luck.

Hope you understand. Any help appreciated.

Upvotes: 2

Views: 2008

Answers (1)

DaveSab
DaveSab

Reputation:

I had this exact problem. I tried all sorts of craziness. In the end, what worked, was that I would hide / show the datagridview control after I inserted a row.

Hope this helps...

Upvotes: 2

Related Questions