在列中删除未来日期 [英] Blank the future dates in column

查看:75
本文介绍了在列中删除未来日期的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述





我在datagridview中显示了一列(日期列)。点击按钮,我想找出该列中的未来日期,并使用c#(Win表格)将它们删空。



请建议并帮助我轻松地这样做。

Hi,

I have a column (Date column) displayed in datagridview. On a button click, i want to find out the future dates in that column and blank them using c#(Win forms).

Please suggest and help me easy way to do this.

推荐答案

if (someTime > System.DateTime.Now)
    // ...





-SA


这篇关于在列中删除未来日期的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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