会员
周边
新闻
博问
AI培训
云市场
所有博客
当前博客
我的博客
我的园子
账号设置
简洁模式
...
退出登录
注册
登录
Xianji
博客园
首页
新随笔
联系
订阅
管理
2023年6月2日
winform窗体DataGridView控件列按编辑的顺序显示
摘要: this.dataGridView1.AutoGenerateColumns = false;
阅读全文
posted @ 2023-06-02 16:05 Xianji
阅读(65)
评论(0)
推荐(0)
编辑
winform窗体DataGridView设置行内容自动换行
摘要: //自动换行 this.dataGridView1.DefaultCellStyle.WrapMode = System.Windows.Forms.DataGridViewTriState.True; //自动调整行高 this.dataGridView1.AutoSizeRowsMode = S
阅读全文
posted @ 2023-06-02 16:02 Xianji
阅读(774)
评论(0)
推荐(0)
编辑
2021年7月8日
比较两个时间大小的三种方法
摘要: 第一种直接用字符串类的compareTo方法: String t1="20131011"; String t2="20131030"; int result = t1.compareTo(t2); 第二种是把这个日期字符串转换成long: SimpleDateFormat sdf = new Sim
阅读全文
posted @ 2021-07-08 17:12 Xianji
阅读(2522)
评论(0)
推荐(0)
编辑
公告