Hi,
In WPF there is a property "SelectedItem" for selecting a row and "Remove" function for deleting a row.
xamal code:
<datagrid name="datagridTable" selecteditem="{Binding SelectedInformation}">
....
</datagrid>
ModalView:
private Information selectedInformation;
public Information SelectedInformation
{
get { return selectedInformation; }
set { SetProperty(ref selectedInformation, value); }
}
public UserBase_ViewModal()
{
delete = new DelegateCommand(DeleteInformationInTable);
}
private void DeleteInformationInTable()
{
Information.Remove(SelectedInformation);
}
Regards,
R.Karthik
Test Automation