set AutoSizeMode
to fill
for Name
column
Formatting a datagridview in vb.net
-
07-07-2023 - |
Question
Hi everyone i just wanted to ask how can i make the appearance of my datagridview better
I just wanted to remove the spaces enclosed in the red lines ,are there any way that I can extend my database to the full sisze of my datagridview?
Thank in advance
Solution
OTHER TIPS
Your question has nothing to do with the database. You can fiddle with the auto-sizing of the columns so that they occupy the full width of the grid. To fill the space at the bottom you would have to change the height of the rows, which would be unusual and is not something that would happen automatically. You could just change the grid background colour to white so it looks less like empty space.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow