Hi all
I have one DataSet bind to a one DGV. And in a Sub i have the code that formats the DGV columns.
Something like this
This works just fine.
dgJogos.Columns(4).SortMode = DataGridViewColumnSortMode.NotSortable
dgJogos.Columns(4).Width = 140
dgJogos.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
dgJogos.Columns(4).ReadOnly = False
dgJogos.Columns(4).DataPropertyName = "DATA"
dgJogos.Columns(4).HeaderText = "DATA"
This is not working
dgJogos.Columns(4).DefaultCellStyle.Format = "dd/mm/yy"
dgJogos.Columns(4).DefaultCellStyle.SelectionBackColor = Color.White
Can anyone help here?
Thank you
I have one DataSet bind to a one DGV. And in a Sub i have the code that formats the DGV columns.
Something like this
This works just fine.
dgJogos.Columns(4).SortMode = DataGridViewColumnSortMode.NotSortable
dgJogos.Columns(4).Width = 140
dgJogos.Columns(4).DefaultCellStyle.Alignment = DataGridViewContentAlignment.MiddleCenter
dgJogos.Columns(4).ReadOnly = False
dgJogos.Columns(4).DataPropertyName = "DATA"
dgJogos.Columns(4).HeaderText = "DATA"
This is not working
dgJogos.Columns(4).DefaultCellStyle.Format = "dd/mm/yy"
dgJogos.Columns(4).DefaultCellStyle.SelectionBackColor = Color.White
Can anyone help here?
Thank you