2009年9月11日

SQL清空数据技巧

摘要: 在用mssql时 偶尔需要清空数据 以前一直用delete 有个缺陷:自动编号的ID列不能归零。 今天发现有个好的办法: Truncate Table [表名] 这个可以直接清空数据(delete是逐行删除),并把自动编号的归零。 阅读全文

posted @ 2009-09-11 15:47 YoshiroGu 阅读(173) 评论(0) 推荐(0) 编辑

DataGridView绑定List时无法进行添加删除操作的解决方法

摘要: 将List转换为BindingList,然后设置DataGridView的DataSource为BindingList!!代码: DataGridView.DataSource = new BindingList (List );将绑定BindingList的DataSource转化为Li... 阅读全文

posted @ 2009-09-11 15:45 YoshiroGu 阅读(525) 评论(1) 推荐(0) 编辑

2009年7月30日

.NET第七章

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2009-07-30 15:38 YoshiroGu 阅读(12) 评论(0) 推荐(0) 编辑

2009年7月27日

.NET第六章

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2009-07-27 08:58 YoshiroGu 阅读(11) 评论(0) 推荐(0) 编辑

2009年7月26日

.NET第四章

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2009-07-26 19:25 YoshiroGu 阅读(10) 评论(0) 推荐(0) 编辑

.NET第二章

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2009-07-26 19:23 YoshiroGu 阅读(10) 评论(0) 推荐(0) 编辑

.NET第一章

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2009-07-26 19:21 YoshiroGu 阅读(13) 评论(0) 推荐(0) 编辑

导航