Basic Example to bind dataGrid in WPF :Datagrid name is dgDisplay
manually adding columns and one row
DataTable dt;
dt = new System.Data.DataTable();
dt.Columns.Add("First Name");
dt.Columns.Add("Last Name");
dt.Columns.Add("Mobile Number");
dt.Columns.Add("Email Address");
dt.Columns.Add("Company");
dt.Columns.Add("Web Page");
dt.Columns.Add("Notes");
dt.Rows.Add(new object[] { "hari","Krishna", "9000000000", "haripobbati@gmail.com", "EMC",www.EMC.co.in,"Software Engineer" });
dgDisplay.ItemsSource = dt.DefaultView;
(or) if you have dataset data fetched from datatbase then you can directly set DataGird ItemsSource property as below
dgDisplay=ds.Tables[0];