7
Answers

Need to get rid of datagridview grey space

Shawn

Shawn

10y
12.6k
1
I am developing a winform application in C# that connects to a mySQL database. It queries the DB returning to a datatable. Once the data is retrieved, it is put into a datagridview. My issue is the width of the datagridview is such that the columns do not fill it completely leaving grey space to the right of the the columns. Also, I would like to remove the grey space below the rows and fill with empty rows. I have googled and searched here but can't seem to find the answer to my issues. Any help would be appreciated. I can think of some crude ways to solve the problems, but I think there must be something more simple.

Thanks

Answers (7)