如何在Girdview中以日期和时间格式进行编辑..... [英] How To Edit In Girdview in Date&Time Format.....
本文介绍了如何在Girdview中以日期和时间格式进行编辑.....的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
朋友朋友...
我的表格有5列...其中一列是"DateOfJoin",这是表格的DateTime数据类型,默认情况下为YY/MM/DD格式.
查询还使用存储过程" ...
我已将表放入数据集并绑定到gridview..
Hi frnds friends...
I have table which has 5 columns... one of the column is "DateOfJoin" which is DateTime datatype of table which is in the format of YY/MM/DD by default.
query also use "stored procedure"...
I have taken the table to dataset and binded to gridview..
推荐答案
我存储的db ... dateofjoin列格式为datetime.然后我可以使用datagird,但可以编辑存储为文本格式的gidata dataofjion列.
您需要使用 TemplateField .
在此处了解有关用于编辑网格的模板字段的信息: MSDN:ASP.NET 2.0的GridView示例:编辑基础数据在GridView中 [ ^ ]
MSDN:ASP.NET 2.0的GridView示例:使用TemplateFields [
i stored db...dateofjoin column formating as datetime. and than i can retive datagird but edit gird dataofjion column stored as text format.
You need to use TemplateField.
Read about template fields used for editing grid here: MSDN: GridView Examples for ASP.NET 2.0: Editing the Underlying Data in a GridView[^]
MSDN: GridView Examples for ASP.NET 2.0: Working with TemplateFields[^]
Now, try!
这篇关于如何在Girdview中以日期和时间格式进行编辑.....的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文