Hi All,

I am creating a Windows Application. I am maintaining LibraryBooks details.

When I click on the Details all the books available(as stored in SQL SERVER Database) is been displayed in the DataGridView.

But the datagridview also contains a empty row at the end which it generates automatically. But I want to remove this empty row.

How can I do this? Please note that I am using C# to create my application.

Please Help me out in deleting this auto generated row?

Thanks in advance!!

dataGridView1.AllowUserToAddRows = false;

Thank you very much

If your sastified with the answer, please mark this topic as solved (bottom of the page)

He cant mark it as solved, he isnt the OP and he has ressurected a year dead thread to say thank you...with all these zombie threads rising i have an intense desire for a shotgun...or a lawn mower :)

Hi Angel123@ welcome at DaniWeb.
Please read the rules (You should have!)
Don't resurrect old threads(start a newone), if you have a question be a bit more specific than "It is not working"
This may answer your question.