Null Row

mad_doggy911

New member
Joined
Nov 3, 2006
Messages
1
Programming Experience
Beginner
Hi,

I'm new to the forum. Can't seem to get my head around this.. I have a DataGridView and im finding it difficult to eliminate the default Null row that comes with the control. I've tried to change the settings of the DataTable's DefaultView.AllowNew property to False and it still doesn't seem to get rid of it. Can anyone please help?

Cheers.
 
I don't think it's the datagridview control thats creating the row. I think it's coming from your datasource.
 
DataGridView.AllowUserToAddRows = False


After that, if you have a blank row in your grid, its because your data model has a blank row
 
Back
Top