Sorry got a ahead of myself - Forgot which group I was in!!
You need to add a table style to the DataGrid and You add a
columnstyle for each column - see below:
DataGridTableStyle gridstyle = new DataGridTableStyle();
gridstyle.MappingName = "TableName";
DataGridColumnStyle columnstyle = new DataGridTextBoxColumn();
columnstyle.MappingName = "id";
columnstyle.HeaderText = "Name";
columnstyle.Width = 20;
gridstyle .GridColumnStyles.Add(columnstyle);
dataGrid1.TableStyles.Add(gridstyle );
That should do the trick!
Thanks,
Russ
http://www.cats.co.za
Ultra Rugged, Ultra Reliable Handheld devices