Hi all,
I'm dinamically adding columns to my RadGrid.
I need to add a GridDateTimeColumn to show and allow the user change a time, so I need to display data in format HH:ss .
I am trying to do this using DataFormatString property but it doesn't work: I always see the standard format yyyy/MM/dd HH:mm:ss .
Here is my code:
GridDateTimeColumn col = new GridDateTimeColumn();
col.PickerType = GridDateTimeColumnPickerType.TimePicker;
col.DataField = "FIELD";
col.DataType = typeof(DateTime);
col.DataFormatString = "{0:HH mm}";
myRadGrid.MasterTableView.Columns.Add(col);
Can anyone help me?
Thanks in advance.
I'm dinamically adding columns to my RadGrid.
I need to add a GridDateTimeColumn to show and allow the user change a time, so I need to display data in format HH:ss .
I am trying to do this using DataFormatString property but it doesn't work: I always see the standard format yyyy/MM/dd HH:mm:ss .
Here is my code:
GridDateTimeColumn col = new GridDateTimeColumn();
col.PickerType = GridDateTimeColumnPickerType.TimePicker;
col.DataField = "FIELD";
col.DataType = typeof(DateTime);
col.DataFormatString = "{0:HH mm}";
myRadGrid.MasterTableView.Columns.Add(col);
Can anyone help me?
Thanks in advance.