You need to set datagridview’s SelectionMode to FullRowMode.
Note: In Visual Studio 2013 with .NET 4.5 the property is called FullRowSelect.
You need to set datagridview’s SelectionMode to FullRowMode.
Note: In Visual Studio 2013 with .NET 4.5 the property is called FullRowSelect.