如何使用datagridviewtextboxcolumn显示时间 [英] How to display time on using datagridviewtextboxcolumn

查看:173
本文介绍了如何使用datagridviewtextboxcolumn显示时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用c#2010创建Windows应用程序 - 在我的应用程序中我使用datagridview进行计费,我使用DataGridViewTextBoxColumn在页面加载事件上创建数据网格视图列,这里我想要如何在DataGridViewTextBoxColumn上显示时间。



给我任何一个想法。



我尝试了什么:



I am creating windows application using c# 2010 - in my application i am using datagridview for billing purpose, i am create data grid view columns on page load event using DataGridViewTextBoxColumn, here i want how to display time on DataGridViewTextBoxColumn.

Give me any one some ideas.

What I have tried:

How to display time on using DataGridViewTextBoxColumn

推荐答案

将时间转换为字符串并设置为相关列中的单元格。
Convert the time to a string and set into the cell in the relevant column.


这篇关于如何使用datagridviewtextboxcolumn显示时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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