Currently I'm using a datagrid to display data, seems okay, but I have a few questions around the general use of them...
Currently in my code I have the following
DataGridTableStyle ts1 = new DataGridTableStyle();
ts1.MappingName = error.Return.TableName;
DataGridColumnStyle col1 = new DataGridTextBoxColumn();
col1.MappingName = "return_code";
col1.HeaderText = "Return Code";
col1.Width = 70;
ts1.GridColumnStyles.Add(col1);
DataGridColumnStyle col2 = new DataGridTextBoxColumn();
col2.MappingName = "description";
col2.HeaderText = "Description";
col2.Width = 380;
ts1.GridColumnStyles.Add(col2);
DGReturnCode.TableStyles.Add(ts1);
DGReturnCode.DataSource = error.Return;
This works, however is it possible to setup this stuff earlier than at runtime, can I setup styles either through the IDE (I'm using SharpDevelop) or by setting properties at the time I create the datagrid (or even through the datatable that I use as the datasource for the datagrid?)
Or do you just have to set it all up during the program?