Create column objects, set their properties appropriately, and add the columns to the grid's columns collection. Just regular C#....
Example:
DataGridTextColumn textcol = new DataGridTextColumn();
textcol.Header = "Column Header";
textcol.Binding = new Binding("MyColumnProperty");
dataGrid.Columns.Add(textcol);