1
I am creating a Datagridview automatically with a time column and am using the time format 00:00, as follows below.
dgvhorario.ColumnCount = 1;
dgvhorario.Columns[0].Name = "Horário";
dgvhorario.Columns[0].DefaultCellStyle.Format = "t";
dgvhorario.Columns[0].Width = 80;
But at the execution, there is appearing the mask of hours: 00:00
Can someone tell me how to fix this?
Your code did not work jpklzm friend. There is how to explain better
– Fabrício Mendes
What kind of data do you use to pass the value of the cell? Take the time of a datetime or go through string?
– jpklzm
In this way that you are presented I can not at the time of execution, that is when I start the form and I will write something in the cell it does not format automatically
– Fabrício Mendes