[SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] dgTableStyle [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] DataGridTableStyle
dgTableStyle = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] DataGridTableStyle
dgTableStyle.MappingName = TBL_BATCH
[/SIZE][SIZE=2][COLOR=#008000]' Set other properties.
[/COLOR][/SIZE][SIZE=2]dgTableStyle.AlternatingBackColor = Color.LightGray
dgTableStyle.AllowSorting = [/SIZE][SIZE=2][COLOR=#0000ff]True
[/COLOR][/SIZE][SIZE=2][/SIZE][SIZE=2][COLOR=#0000ff]Dim[/COLOR][/SIZE][SIZE=2] TextCol [/SIZE][SIZE=2][COLOR=#0000ff]As[/COLOR][/SIZE][SIZE=2] DataGridTextBoxColumn[/SIZE][SIZE=2] = [/SIZE][SIZE=2][COLOR=#0000ff]New[/COLOR][/SIZE][SIZE=2] DataGridTextBoxColumn
TextCol.MappingName = "DateCol"
TextCol.HeaderText = "Date Col"
TextCol.Width = 80
TextCol.ReadOnly = [/SIZE][SIZE=2][COLOR=#0000ff]True
[/COLOR][/SIZE][SIZE=2]TextCol.Format = "dd/MM/yyyy HH:mm:ss"
dgTableStyle.GridColumnStyles.Add(TextCol)
[/SIZE]