Home > DeveloperSection > Forums > How to Remove Default Row In Wpf data Grid
Samuel Fernandes
Samuel Fernandes

Total Post:159

Posted on    September-21-2013 9:00 AM


 1 Reply(s)
 1802  View(s)
Rate this:

I am using a WPF Data Grid. Whenever it is loaded there is a blank default row. How can I disable the default row from appearing like you can in the Windows Forms grid.

Sumit Kesarwani

Total Post:378

Posted on    September-23-2013 1:16 AM

Hi Samuel,

This is the row for new entries. If you don't want let the user create new entries or if you handle this from code, e.g. with a add-button, disable the CanUserAddRows-option.

<DataGrid  CanUserAddRows="False" />

Don't want to miss updates? Please click the below button!

Follow MindStick