摘要: C#中有什么语句可以起到system("pause")? Console.Write("\r\nPress any key to continue....");Console.ReadKey(); 或者 using System.Threading;Thread.Sleep(时间);如... 阅读全文
posted @ 2011-09-08 19:44 芋头神 阅读(125) 评论(0) 推荐(0) 编辑
摘要: 默认情况下dataGridView 是允许排序的,也就是说点击列标题的时候排序整个dataGridView,但是在很多特殊情况下,我们不希望它进行排序。针对每一列的SortMode设置为NotSortTable,对于绑定的数据集同样适用。 也可以写如下代码实现 for(int i=0;i <t... 阅读全文
posted @ 2011-09-08 16:23 芋头神 阅读(7256) 评论(0) 推荐(0) 编辑
摘要: 1) 设定行高和列宽自动调整 [C#]//设定包括Header和所有单元格的列宽自动调整 DataGridView1.AutoSizeColumnsMode = DataGridViewAutoSizeColumn... 阅读全文
posted @ 2011-09-08 15:55 芋头神 阅读(22750) 评论(0) 推荐(2) 编辑