title: programmatically add column & rows to WPF Datagrid
body: <p>I want to know how should we add columns and rows programmatically to a DataGrid in WPF. The way we used to do it in windows forms. create table columns and rows, and bind it to DataGrid.</p>
  <p>I have No. of rows and columns which I need to draw in DataGrid so that user can edit the data in the cells.</p>