---
title: "How can I scroll the grid programatically in WPF?"  
description: "How can I scroll the grid programatically in WPF?"  
author: "Mark Devid"  
published: 2014-01-23  
updated: 2014-01-23  
canonical: https://www.mindstick.com/forum/1866/how-can-i-scroll-the-grid-programatically-in-wpf  
category: "c#"  
tags: ["c#"]  
reading_time: 1 minute  

---

# How can I scroll the grid programatically in WPF?

How can I scroll the [grid](https://www.mindstick.com/forum/369/how-can-i-add-a-column-name-to-my-grid) programatically in [WPF](https://www.mindstick.com/forum/304/wpf)?

## Replies

### Reply by Pravesh Singh

Hi Mark,\

Will DataGrid.ScrollIntoView work for you? The first parameter(item) is the element you want to show.

//

// Summary:

// Scrolls the System.Windows.Controls.DataGrid vertically and horizontally

// to display a cell for the specified data item and column.

//

// Parameters:

// item:

// The data item to bring into view.

// column:

// The column to bring into view.

public void ScrollIntoView(object item, DataGridColumn column);


---

Original Source: https://www.mindstick.com/forum/1866/how-can-i-scroll-the-grid-programatically-in-wpf

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
