DataGridView Frame

VBAHole22

Contributor
Joined
Oct 21, 2003
Messages
432
Location
VA
I know that I can resize the columns of a datagridview at runtime so they fit nicely. But how do you get the external frame of the grid itself to close up and fit against the grid that gets generated?
I'm not sure if I am explaining this very well. If you are in the form designer you can drag the edges of the grid control stub to make it bigger or smaller, but when you run it and get the data for the grid if you have a few records in there you see a gap between the frame and the actual data. I could make the background the same color as my form but it's still eating real estate on the screen.

I'm sure its some simple setting i'm missing.
 
Back
Top