this should help make sure you set the width for al the col's in the
datagrid
Dim ts As New DataGridTableSt yle
ts.MappingName = "Table"
dgrMain.TableSt yles.Clear()
dgrMain.SetData Binding(dsForm, "Table")
dgrMain.TableSt yles.Add(ts)
ts.GridColumnSt yles(0).Width = 0
ts.GridColumnSt yles(1).Width = 117
ts.GridColumnSt yles(2).Width = 280
ts.GridColumnSt yles(3).Width = 83
ts.AllowSorting = True
ts.AlternatingB ackColor = Color.Lavender
ts.BackColor = Color.WhiteSmok e
ts.ForeColor = Color.MidnightB lue
ts.GridLineColo r = Color.Gainsboro
ts.HeaderBackCo lor = Color.MidnightB lue
ts.HeaderForeCo lor = Color.WhiteSmok e
ts.LinkColor = Color.Navy
ts.SelectionBac kColor = Color.Navy
ts.SelectionFor eColor = Color.Lavender
ts.ColumnHeader sVisible = True
"Mike Fellows" <mi************ *@equityhouse.c o.uk.SPAM> wrote in message
news:kY******** ******@newsfep1-gui.server.ntli .net...
Im trying to set the column width of individual datgrid columns
I can set the column widths of all the columns at once using
Me.DataGrid1.Pr eferredColumnWi dth = 100
But I am unable to set the individual column widths
Also the source from where my data is coming from the first
column contains a date and time i.e. 01/01/2003 12:00:00
but within the datagrid it displays 01/01/2003 and i need it
to also show the time
Any help with this would be greatly appreciated
Regards
Michael Fellows