C# DataGridView controls have a default, empty last row, marked with a *. How can I hide it?
Use the Windows key + X keyboard shortcut and select Disk Management. Right-click the drive you want to hide and choose Change Drive Letter and Paths. Select the drive letter and click the Remove button.
Right-click the drive you want to hide and select the Change Drive Letter and Paths... Step 3. Remove the drive letter. Click the drive letter and click the Remove button.
Open the following sections: User Configuration, Administrative Templates, Windows Components, and Windows Explorer. Click Hide these specified drives in My Computer. Click to select the Hide these specified drives in My Computer check box. Click the appropriate option in the drop-down box.
The row you speak of is the 'new row' row. This can be hidden by setting the AllowUserToAddRows property to false.
Alternatively you can uncheck the 'Enable Adding' tick box in the DataGridView Tasks dialog.
Disable AllowUserToAddRows property. This property indicating whether the option to add rows(that you call default * row) is displayed to the user.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With