ListView-在运行时动态查找控件 [英] ListView - Find controls dynamically at run time

查看:68
本文介绍了ListView-在运行时动态查找控件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有人,

我在项目中使用列表视图来填充数据表中的数据.数据表将直接从SQL Server数据库填充,该数据库包含列名称EventDate(datetime).

在列表视图内的标签控件上显示事件日期时,它正在显示数据,例如:05-03-2012 00.00.00,而我想将其显示为"2012年3月5日".

请帮我实现它.

谢谢你

亲切的问候
Azeem

Dear All,

I have used list view in my project, to populate data from the datatable. And the datatable will be populated directly from the SQL Server DB, which contains column name EventDate(datetime).

While displaying the event date on the label control inside a listview, it is displaying the data as for ex: 05-03-2012 00.00.00 instead I want to display it as "05th March 2012".

Please help me achieve it.

Thanking you

Kind regards
Azeem

推荐答案

您好,您可以在此链接后使用日期格式: http ://support.microsoft.com/kb/308133 [^ ]
Hi, you can use date formatting following this link: http://support.microsoft.com/kb/308133[^]


这篇关于ListView-在运行时动态查找控件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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