C# How to disable ‘new row’ in DataGrid?

Tags:
C
Development
Programming Languages
Is there a way to disable new rows in DataGrid in C#? There is a a * (asterisk) always at the last row of the datagrid. The datagrid contains editable data and I do not want to use "ReadOnly=True" to disable the "New Row (*)" at the end of the datagrid. Any information is appreciated. Thanks. Regards, Manoj Patel

Answer Wiki

Thanks. We'll let you know when a new response is added.

What datasource are you using? For example, on DataView there is a property called AllowNew. Set this to False and you’re done.

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

Thanks! We'll email you when relevant content is added and updated.

Following

Share this item with your network: