Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

WPF Datagrid select just one row and populate several text boxes

$
0
0

I'm very used to WinForms but am now coding WPF.

I have a Datagrid and I can populate it from a table (actually several tables) but I need to get many of the fields on one row and use them to populate several text boxes. How to do?

I have a simple DataGrid:

       <DataGrid x:Name="dataGridView1" HorizontalAlignment="Left" Margin="6,301,0,0" VerticalAlignment="Top" Width="1797" Height="220" IsReadOnly="True"                  Background="Beige" AlternatingRowBackground="Azure" RowBackground="Beige" HeadersVisibility="Column"  MinHeight="200" SelectionUnit="FullRow" MinColumnWidth="50"                    CanUserResizeColumns="True" CanUserAddRows="False" CanUserSortColumns="True"  />



thanks!



Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>