DataGridView Getting Rid Of The 'new Row' (asterisk Row)?Sep 16, 2010
This is my first time using DataGridView, and I've managed to solve most of my problems but one.In my datagridview table, I want the user to be able to add and remove rows as they please, they just select the row, click delete, and that row is goneMy problem is there is a row that is labeled the "new row" (i think?) that has an asterisk beside it(to the left) that will generate an error if you try to delete it.How do I remove the asterisk beside the row and make it so the row is deleteable by the user, and that it will not generate an error?Private Sub Button3_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button3.Click
If DataGridView1.CurrentRow.IsNewRow Then
'This is not ok. I do not want to have to have this If section here.