Well, you could use the WYSIWYG editor to put the grid on the form, set its properties and add the rows and columns. Then, in code, you can replace the default DataRowTemplate of the grid with an instance of your own DataRow-class. If the grid creates its rows and cells, it just makes a copy of the DataRowTemplate.
Like this:<code>grid.DataRowTemplate = new MyDataRow();</code>You can put this line of code in the constructor of your form, right after the call to InitializeComponent.
Imported from legacy forums. Posted by Tommy (had 264 views)