VS2005, VB.Net, I'm programming a WASP WDT3250 w/Windows CE 5.0
Thus...Visual Basic>Smart Device>Windows CE 5.0 project.
I've been looking for examples on how to set the column width in a
datagrid. I'm populating the datagrid with a collection and assigning that
collection to the datasource. The data shows up and all looks well, but the
columns are all the same width and left aligned. I'm down to the
aesthetics.
I've given this a try too, but no luck.
Dim ts As New DataGridTableStyle
ts.MappingName = "Unchecked"
Dim s As DataGridColumnStyle = New DataGridTextBoxColumn
s.MappingName = "Route"
s.HeaderText = "Rte"
s.Width = 30
ts.GridColumnStyles.Add(s)
Me.dgUnchecked.TableStyles.Add(ts)
How do I set the column widths either programmically or in design mode and
how can I modify alignment?