I have a datagrid and textboxes. When I select a row in DataGrid I want the textboxes to be filled with related data of that datagrid column. Here is the picture.,
Here's how you could do it with bindings. The "Text" parameter of each textbox should be modified thusly:
Text = "{Binding ElementName = personelEntityDataGrid, Path = CurrentItem.}"
so for the nameBox, you would have:
Text = "{Binding ElementName = personelEntityDataGrid, Path = CurrentItem.Name}"