# Displaying time in a datagrid

**URL:** <https://forum.kirupa.com/t/displaying-time-in-a-datagrid/206363>\
**Category:** programming\
**Created:** [November 7, 2006, 3:13pm UTC](https://forum.kirupa.com/t/displaying-time-in-a-datagrid/206363 "2006-11-07T15:13:39Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![feilhk](https://avatars.discourse-cdn.com/v4/letter/f/3da27b/32.png) [@feilhk](https://forum.kirupa.com/u/feilhk)\
**Post date:** [November 7, 2006, 3:13pm UTC](https://forum.kirupa.com/t/displaying-time-in-a-datagrid/206363/1 "2006-11-07T15:13:39Z")

</div>

my datagrid has 3 column, (name , checkbox, Time)

When the checkbox is selected, the current time will be dispalyed in the field of Time

Here are my as code

```auto

//student_xml.trigger();
import mx.controls.DataGrid;
var dateFmt = new flextnet.utility.DateTimeFormatter();
// Build data provider for the data grid 
myDP = new Array();
myDP.addItem({stdChname:"",TakeTime:false,Time:dateFmt.formatString("h:i:s: a")});
student_dg.dataProvider = myDP;  
student_dg.getColumnAt(1).cellRenderer = "CheckBoxCell";

```

And what should i put in the componet inspector?

i have name as String, checkbox as object, and Time as String , but the time cant be displayed … could anyone help me?? thz
