Start with a new instance of the
DataGridView
Class[
^], and add rows and columns, and their properties, as required. You can figure out most of the code by creating a form in Visual Studio, with a
DataGridView
on it. Add the various properties you require, and then look at the generated code.