当前位置:编程学习 > C#/ASP.NET >>

WebGrid 日期列赋值问题

将WebDateChooser 的值 赋给WebGrid 的日期列
grid.Rows.getRow(i).getCellFromKey("Lifetime").setValue(document.getElementById(<%=WebDateChooser1.ClientID%>).value);
日期列无写入数据;
grid.Rows.getRow(i).getCellFromKey("Lifetime").setValue("2010-01-01")
日期列无写入数据;
grid.Rows.getRow(i).getCellFromKey("Lifetime").setValue("2010/01/01")
日期列有写入数据但日期为2015年 
--------------------编程问答-------------------- --------------------编程问答-------------------- GridView1.Rows[0].Cells[0].Text = "2010/1/1"; --------------------编程问答-------------------- 顶······ --------------------编程问答--------------------
引用 2 楼 malun666 的回复:
GridView1.Rows[0].Cells[0].Text = "2010/1/1";

前台写入,不提交~! --------------------编程问答-------------------- --------------------编程问答-------------------- http://zhangjiyin.spaces.live.com/?_c11_BlogPart_pagedir=Next&_c11_BlogPart_handle=cns!9CD31969C494E166!181&_c11_BlogPart_BlogPart=blogview&_c=BlogPart --------------------编程问答-------------------- 没看到什么东西啊 --------------------编程问答-------------------- 试试01/01/2003 这种格式呢? --------------------编程问答--------------------
引用 8 楼 peter200694013 的回复:
试试01/01/2003 这种格式呢?

是这个格式问题,能不能在GRID设置成按2003/01/01 输入呢?
GRID有一个FORMAT的属性 可设置不好用啊~
补充:.NET技术 ,  C#
CopyRight © 2012 站长网 编程知识问答 www.zzzyk.com All Rights Reserved
部份技术文章来自网络,