---
title: "How to read value from a Cell from a WPF DataGrid?"  
description: "How to read value from a Cell from a WPF DataGrid?"  
author: "Anonymous User"  
published: 2013-07-19  
updated: 2013-07-19  
canonical: https://www.mindstick.com/forum/1339/how-to-read-value-from-a-cell-from-a-wpf-datagrid  
category: "wpf"  
tags: ["wpf"]  
reading_time: 1 minute  

---

# How to read value from a Cell from a WPF DataGrid?

How to read a [cell value](https://www.mindstick.com/forum/33654/send-table-view-cell-value-on-button-action-in-ios) [form](https://www.mindstick.com/forum/6/multi-form-mfc-application) a [WPF](https://www.mindstick.com/forum/304/wpf) DataGrid?

I [search](https://www.mindstick.com/articles/65368/best-smo-services-company-in-hyderabad-improve-search-rankings) [online](https://www.mindstick.com/articles/13083/benefits-of-students-who-can-get-online-assignment) and try any possible combination and nothing works:

Datagrid.Cells[..], DataGrid.Items.Cells[..], DataGrid.Rows.., DataGrid.Items.Row.. nothing works, I can't find it is MSDN or I don't understand it. I just need to read a value off a cell in DataGrid that simple.

How to do it?

## Replies

### Reply by shreesh chandra shukla

Solution!

This might help someone else.

```
foreach (DataRowView row in dgLista.SelectedItems){    string text =
row.Row.ItemArray[index].ToString();}
```

Good luck!


---

Original Source: https://www.mindstick.com/forum/1339/how-to-read-value-from-a-cell-from-a-wpf-datagrid

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
