Guest User

Untitled

a guest
Jun 23rd, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.24 KB | None | 0 0
  1. dataTable = new DataTable();
  2.  
  3. var columnSpec = new DataColumn();
  4. columSpec.DataType = typeof(decimal); // If it holds a decimal
  5. columSpec.ColumnName = "Interest Rate";
  6. dataTable.Columns.Add(columnSpec);
  7.  
  8. dataGridView.DataSource = dataTable;
Add Comment
Please, Sign In to add comment