Dec 11th, 2008, 03:10 PM
[RESOLVED]  Removing last row datagridview
Okay I have an unbound DataGridView control which users enter as many records as is required. However I have some validation running which checks all cells to ensure data has been entered, however as you know, as soon as data is entered into a row, another appears, well I need to remove this row.
I can't use
DataGridView1.Rows.RemoveAt(DataGridView1.Rows.Count - 1)
As the row has not been committed, therefore it can't be deleted
Also I need the 'enable adding' on, as without it rows will not appears.
Data Binding & Bound Controls - Objects and wizards will never be as intelligent as you, do it yourself! (Unless your Pro)
Click Here to Expand Forum to Full Width