无法将日期时间值绑定到基础日历 [英] Can't bound Date time value to infragistic calender

查看:97
本文介绍了无法将日期时间值绑定到基础日历的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我的应用程序中,有一个复制按钮,单击该行时应复制该行,在行列中是开始日期和结束日期(基础日历控件),其他文本框,用于复制行,复选框的checkedchange事件,我要获取数据表中的所有值,然后单击复制按钮之后,我要获取先前的数据表,现在在表中添加具有相同值的新行,即使开始日期和结束日期在数据表中,两行值也正确显示,但是当我将在那时开始日期和结束日期未将此数据表绑定到GridView到此基础设施控件,它显示空值

In my application,there is one copy button,Onclicking of it selected row should copy as it,in row columns are start date and end date (infragistic calender control),other textboxes,for copying row,oncheckedchange event of checkbox ,i''m taking all values in datatable and then after onclick of copy button i am taking previous DataTable,Now adding new row within table with values same, in DataTable both rows value showing correctly,even if start date and end date, But when i am going to bind this DataTable to GridView at that time start date and End Date are not binding to this infragistic control,it is showing null values

推荐答案

必须是日期格式(例如01/13/2010、13/01/2010)将成为问题.因此,在保存到数据库中或从数据库中检索日期格式时,请检查日期格式.
Must be the Date format(ex. 01/13/2010, 13/01/2010) will be the problem. So check the date format while save/retrieve to/from DB.


这篇关于无法将日期时间值绑定到基础日历的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆