12 2013 档案

摘要:Windows 2008 R2远程桌面,设置最大连接数,一个登录后另一个就被踢掉等问题Windows 2008 R2配置如图:1、打开远程桌面回话主机配置2、右键RDP-Tcp,属性,可设置最大连接数3、设置每个用户只能进行一个回话,如果勾选(如administrator用户登陆,一个登录后另一个就被踢掉)完毕! 阅读全文
posted @ 2013-12-09 11:06 yuejin 阅读(41722) 评论(1) 推荐(0) 编辑
摘要:在数据处理的时候,我们会Excel(包含2003、2007、2010等)转换成DataTable,以便进一步操作1、怎么访问Excel文件呢?我们可以通过OLEDB接口访问,如下: private string GetConStr(string ExcelPath) { string path = ExcelPath; if (!File.Exists(path)) return null;string str2 = Path.GetExtension(path).ToLower(); ... 阅读全文
posted @ 2013-12-04 15:45 yuejin 阅读(2778) 评论(0) 推荐(1) 编辑
摘要:DataGridView绑定数据源时,会自动显示未绑定的列,怎么让其不显示未绑定的列呢?设置AutoGenerateColumns属性即可this.dataGridView1.AutoGenerateColumns = false;ok 阅读全文
posted @ 2013-12-02 11:29 yuejin 阅读(3375) 评论(0) 推荐(1) 编辑
摘要:DataGridView控件在显示数据时,我们有时候需要显示行号,以便检索查看方便使用。但DataGridView默认没有设置显示行号的属性。此时我们只要在DataGridView的RowPostPaint事件中进行绘制,实现其效果:private void dataGridView1_RowPostPaint(object sender, DataGridViewRowPostPaintEventArgs e) { SolidBrush b = new SolidBrush(this.dataGridView1.RowHeadersDefaultCellS... 阅读全文
posted @ 2013-12-02 11:24 yuejin 阅读(5544) 评论(0) 推荐(2) 编辑

点击右上角即可分享
微信分享提示