spebola
Well-known member
I am using a datagrid with one of the columns containing a date.
I would like this column to only contain the day of the month.
Day Price
2 30.00
6 32.00
instead of
01/02/2003 30.00
01/06/2003 32.00
This is the code I am using:
dgPrEntry.TableStyles.Clear()
dgPrEntry.DataSource = ds.Tables(0)
Dim ts1 As New DataGridTableStyle
ts1.MappingName = ds.Tables(0).ToString
Dim TC0 As New DataGridTextBoxColumn
TC0.MappingName = "PR_EffDate"
TC0.HeaderText = "Day"
TC0.Width = 80
ts1.GridColumnStyles.Add(TC0)
Any suggestions?
I would like this column to only contain the day of the month.
Day Price
2 30.00
6 32.00
instead of
01/02/2003 30.00
01/06/2003 32.00
This is the code I am using:
dgPrEntry.TableStyles.Clear()
dgPrEntry.DataSource = ds.Tables(0)
Dim ts1 As New DataGridTableStyle
ts1.MappingName = ds.Tables(0).ToString
Dim TC0 As New DataGridTextBoxColumn
TC0.MappingName = "PR_EffDate"
TC0.HeaderText = "Day"
TC0.Width = 80
ts1.GridColumnStyles.Add(TC0)
Any suggestions?