I have datagridDisp.xaml.cs as below.
public partial class datagridDisp : UserControl { public datagridDisp() { InitializeComponent(); } public datagri