Avatar of huangs3
Flag for Canada

asked on 

Visual Studio 2005 C# Desktop GUI Program: is it possible to remove the last row in a DataGridView?

Hi Experts:

    I have a program using a DataGridView, and the program handles the event of changing selected rows according to the ID value of the row.
    The DataGridView always has an extra blank row at the end, and it will cause error if user select it in the current program. I don't want to add more logic to the event handler, but just want to make this extra row disapper to resolve the issue?
    What this the way to do that?
     Thank you!
.NET Programming

Avatar of undefined
Last Comment

8/22/2022 - Mon