How do I remove the empty row from the bottom of a DataGridView control?

Yes, there will always be an empty row at the bottom of a DataGridView It allows the user to add new data at run-time; all they have to do is start typing in the new row.

Yes, there will always be an empty row at the bottom of a DataGridView. It allows the user to add new data at run-time; all they have to do is start typing in the new row. To disable it, you will also need to prevent the user from adding new rows.Do this by setting the AllowUserToAddRows property of your DataGridView control to False: myDataGridView.

AllowUserToAddRows = false.

I never seen this type of issues. I think the problem in the datasource what you bind to the grid. Please check the datatable or dataset what you applied in grid URL1 may written empty row at last.

No, in fact this is the default behavior. Each time the user starts to add data in the empty row, a new one is automatically created and appended to the bottom of the DataGridView. It doesn't have anything to do with a corrupted data source.

– Cody Gray Jan 31 at 10:58 then you need to set dataGridView1. AllowUserToAddRows = false; to disable empty row. Hope this help.

– Suresh Chaudhary Jan 31 at 11:02 Yeah, as concluded by my answer above... – Cody Gray Jan 31 at 11:07.

Yes, there will always be an empty row at the bottom of a DataGridView . It allows the user to add new data at run-time; all they have to do is start typing in the new row.

I never seen this type of issues. I think the problem in the datasource what you bind to the grid. Please check the datatable or dataset what you applied in grid datasource.

It may written empty row at last.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions