2011年2月25日
摘要: 使用SQL Server 2005 导入和导出向导把CSV中的数据信息导入到SQL Server 2005时错误报告如下: 消息报告信息如下: 错误 0xc00470fe: 数据流任务: 产品级别对于 组件“源 - name$”(1) 而言不足。 (SQL Server 导入和导出向导) 错误 0xc00470fe: 数据流任务: 产品级别对于 组件“数据转换 1”(55) 而言不足。 (SQL Server 导入和导出向导) 原因: 没有安装SQL Server 2005 SP1 解决方法: 1.安装SQL Server 2005 SP1 下载地址: http://download.microsoft.com/download/7/9/6/7960eae4-872c-4dfa-865f-3d961b0908cf/SQLServer2005SP1-KB9 阅读全文
posted @ 2011-02-25 13:03 zock 阅读(3256) 评论(0) 推荐(0)
摘要: 关于DataGridView行和列的背景色-前景色设置 1.设定DataGridView全部单元格的Style DataGridView内所有单元格的Style变更,可以使用DataGridView对象的DefaultCellStyle属性实现。 //包含Header所有的单元格的背景色为黄色 DataGridView1.DefaultCellStyle.BackColor = Color.Yellow; //包含Header所有的单元格的前景色为黄色 DataGridView1.DefaultCellStyle.ForeColor= Color.Yellow; //前景色设置,只需要将BackColor改为ForeColor即可 2.DataGridView.DefaultCellStyle属性可以对包含Header所有单元格的Style进 阅读全文
posted @ 2011-02-25 12:48 zock 阅读(23444) 评论(1) 推荐(2)
摘要: [C#/ASP.NET]中List真的非常好用。一个例子简单说明一下List中Sort()、Find()、FindAll()、Exist()的使用方法 简单介绍: List.Sort() → 排序T List.Find() → 找出一個T List.FindAll() →找出多個T List.Exist() →判斷T是否存在 示例代码: Response.Write(lstPerson.Find(delegate(Person p) …… Response.Write(lstPerson.FindAll(delegate(Person p) …… 阅读全文
posted @ 2011-02-25 12:32 zock 阅读(10875) 评论(1) 推荐(2)