Grid sometimes has an extra line related to editing. For example, a DataGridView has an EditMode property. If you set a value for this to indicate that the view is not editable by the user, this may cause the line at the bottom to disappear.
source share