Quantcast
Channel: Telerik Forums RSS
Viewing all articles
Browse latest Browse all 94857

Formatting GridView Columns for WinForms

$
0
0
  Hello

The solution is

tabla3.Columns("Fecha de Cancelación o Devolución").DataType = GetType(Date) 'Convierte la columna a tipo fecha

dgvCanDev.Columns("Fecha de Cancelación o Devolución").FormatString = "{0: dddd, dd, MMM, yyyy}"

But I have another error with the date format

tabla2.Columns.Add("Hora del pedido").DataType = GetType(TimeSpan)

dgvPedidos.Columns("Hora del pedido").FormatString = "{0:hh:mm:ss}"

It gives me the following error in the images


Viewing all articles
Browse latest Browse all 94857

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>