正在加载保存的日期&时间选择器控制 [英] Loading saved date to date & time picker control
问题描述
请帮助我...
我想加载保存的日期&到日期的时间时间文本框.
但是每当我这样做时,我都会出错,但是我可以保存日期&;时间...
请帮助我
...
这就是我试图加载日期&的方式表中的时间..
txtdate.Text = Convert.ToString(objDTTabCustDtl.Rows [0] .ItemArray [25]);
请帮助我..在此先谢谢您. />
我要做的是将各行分开,并使用调试器单步完成每个阶段:
DataRow dr = objDTTabCustDtl.Rows [ 0 ];
对象 o = dr.ItemArray [ 25 ];
字符串 s = Convert.ToString(o);
在每个阶段,请先查看所拥有的内容,然后尝试在下一个阶段之前先生成下一个阶段通过它.
Please please help me ...
I want to load load the saved date & time to the date & time textbox again .
but whenever i do this i get errors however i am able to save the date & time ...
Please help me
...
this is how i am trying to load the date & time from the table ..
txtdate.Text = Convert.ToString(objDTTabCustDtl.Rows[0].ItemArray[25]);
please help me .. thanks in advance ...
Without seeing your error message, and with limited knowledge of you database, it is difficult to tell.
What I would do is pick the line apart, and use the debugger to single step through each stage:
DataRow dr = objDTTabCustDtl.Rows[0]; object o = dr.ItemArray[25]; string s = Convert.ToString(o);At each stage, see what you have, and try to work out what the next stage should produce before you move through it.
这篇关于正在加载保存的日期&时间选择器控制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!