110,536
社区成员
发帖
与我相关
我的任务
分享
int aTime=91210;
string sTime = aTime.ToString("D6");
sTime = sTime.SubString(0,2)+":"+sTime.SubString(2,2)+":"+sTime.SubString(4,2);
//sTime = 09:12:10
System.Windows.Forms.DataGridViewCellStyle dataGridViewCellStyle1 = new System.Windows.Forms.DataGridViewCellStyle();
dataGridViewCellStyle1.Format = "00:00:00";
this.Column1.DefaultCellStyle = dataGridViewCellStyle1;