---
title: "How to remove the extra column of DataGrid using wpf?"  
description: "How to remove the extra column of DataGrid using wpf?"  
author: "Anonymous User"  
published: 2013-08-08  
updated: 2013-08-09  
canonical: https://www.mindstick.com/forum/1354/how-to-remove-the-extra-column-of-datagrid-using-wpf  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# How to remove the extra column of DataGrid using wpf?

How to [remove](https://yourviews.mindstick.com/story/4554/8-harmful-weeds-to-remove-from-garden) the [extra](https://www.mindstick.com/blog/63570/5-ways-to-make-money-with-the-extra-space-in-your-home) [column](https://www.mindstick.com/forum/33860/how-to-calculate-column-summary-in-sql-server) of DataGrid using [wpf](https://www.mindstick.com/forum/304/wpf)?

## Replies

### Reply by shreesh chandra shukla

Hello Mr. Jeet verma!you should to try this\

dataGrid1.Columns[0].Width = new DataGridLength(1, DataGridLengthUnitType.Star);

thanks


---

Original Source: https://www.mindstick.com/forum/1354/how-to-remove-the-extra-column-of-datagrid-using-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
