How to Remove Default Row In Wpf data Grid

Total Post:159

Points:1117

WPF 
WPF
 2535  View(s)
Ratings:
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.

  1. Re: How to Remove Default Row In Wpf data Grid

    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" />

      Modified On Mar-31-2018 01:23:26 AM

Answer

Please check, If you want to make this post sponsored

You are not a Sponsored Member. Click Here to Subscribe the Membership.