C#: DataGridView's extra space on right-hand side and scrollbar
问题 I have a DataGridView control, and the number of columns changes depending on the input from the user every 10 minutes. What needs to be achieved is: The DataGridView needs to show all columns without a horizontal scrollbar unless it affects the readability of any cell contents. If it starts hiding a cell content, a horizontal scrollbar needs to appear. Regardless of how many columns are currently shown, and regardless of whether the horizontal scrollbar is shown or not, the right-hand side