Hi Cor, nice to meet again.
I'using the next syntax:
Dim tsOrder As New DataGridTableStyle
tsOrder.MappingName = "Order"
column = New DataGridTextBoxColumn
column.MappingName = "OrderCode"
column.HeaderText = "Ordercode"
column.Width = 100
tsOrder.GridColumnStyles.Add(column)
grdOrder.TableStyles.Add(tsOrder)
With this I hoped to be able using the format property:
column.Format = "<a format string>", but this Order column is of type
'string' and formatting doesn't work. For numeric or date datatypes this is
not a problem, but this Order column has to be a the string datatype.
Regards Coen.
Btw any news about IndexOutOfRange exception handling? Please in the other
post.
"Cor Ligthert" wrote:
Coen,
Are you using a datatabletextboxcolumn, in my opinion is that already a
string?
Cor