winform下,绑定到datagrid的时间数据没有时,分,秒该怎么办?数据库中是有的,但是一查询出来绑定到datagrid中就没有了,上次一位朋友给我提出的解决方案是select str(datepart(HH,date))+':'+LTRIM(str(datepart(mi,date)))+':'+LTRIM(str(datepart(ss,date))) from bikes,这种方式在SQL Server下可以,但是在ACCESS下就不行了,这是为什么啊?朋友们帮忙看看?

解决方案 »

  1.   

    因为access下没有str,datepart,ltrim这些函数。
      

  2.   

    我用DataGridView试验了一下 没问题萨分秒都有哦
      

  3.   

    http://office.microsoft.com/zh-tw/access/HA012327391028.aspx
      

  4.   

    http://office.microsoft.com/zh-cn/access/HA012288392052.aspx?pid=CH100728912052
      

  5.   

    我用的是03好像没看到过DataGridView吧
      

  6.   

    http://topic.csdn.net/t/20051215/12/4460577.html
      

  7.   

    http://topic.csdn.net/t/20040823/00/3299333.html#