摘要: this.dataGridView1.AutoGenerateColumns = false; 阅读全文
posted @ 2023-06-02 16:05 Xianji 阅读(65) 评论(0) 推荐(0) 编辑
摘要: //自动换行 this.dataGridView1.DefaultCellStyle.WrapMode = System.Windows.Forms.DataGridViewTriState.True; //自动调整行高 this.dataGridView1.AutoSizeRowsMode = S 阅读全文
posted @ 2023-06-02 16:02 Xianji 阅读(774) 评论(0) 推荐(0) 编辑
摘要: 第一种直接用字符串类的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) 编辑