I'm about to create a DataGridView which, in addition to an ID column, will have 66 columns, with column headers numbered from 1 to 66, the rows to hold integer values. It would be time-consuming to define each one manually in the form definition, so (how) can I generate these columns programatically? E.g. can they be defined as an array of columns? Or can I loop through code from 1 to 66 adding the header text, defining the col. attributes in code?
Many thanks.
Many thanks.