---
title: "How to Remove Default Row In Wpf data Grid"  
description: "How to Remove Default Row In Wpf data Grid"  
author: "Samuel Fernandes"  
published: 2013-09-21  
updated: 2013-09-23  
canonical: https://www.mindstick.com/forum/1476/how-to-remove-default-row-in-wpf-data-grid  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# How to Remove Default Row In Wpf data Grid

I am using a [WPF](https://www.mindstick.com/forum/304/wpf) [Data Grid](https://www.mindstick.com/forum/105/what-events-fire-when-binding-data-to-a-data-grid). Whenever it is loaded there is a blank [default](https://www.mindstick.com/interview/12771/what-is-the-importance-of-default-resources) [row](https://www.mindstick.com/forum/1212/this-row-already-belongs-to-this-table). How can I [disable](https://www.mindstick.com/forum/12901/how-to-disable-enable-input-box-in-aspx-with-value-from-sql) the default row from appearing like you can in the [Windows](https://www.mindstick.com/articles/311752/how-to-install-and-use-the-google-wifi-software-on-a-windows-or-mac-computer) [Forms](https://www.mindstick.com/interview/34192/what-is-the-purpose-of-the-authentication-mode-forms-element-in-web-config) grid.

## Replies

### Reply by Sumit Kesarwani

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" />


---

Original Source: https://www.mindstick.com/forum/1476/how-to-remove-default-row-in-wpf-data-grid

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
