04 2016 档案

sql 中如何查询某一列的数据在另一个表中有没有?
摘要:假设表table1,列a,表table2,列bselect a from table1where a not in(select b from table2) 阅读全文

posted @ 2016-04-26 11:33 缠禅 阅读(7505) 评论(0) 推荐(0)

C# winform 去掉button的边框颜色
摘要:Winform的话,设置FlatStyle为Flat,并且设置FlatAppearance下的BorderSize为0,foreColor设置成web下的Transparent 阅读全文

posted @ 2016-04-13 09:26 缠禅 阅读(1740) 评论(0) 推荐(1)

C#treeView控件单击事件选中节点滞后问题解决方法
摘要:问题描述:在treeView的Click事件中,选中的节点SelectedNode并不是您刚才点击的节点,总是上一次选中的节点,节点选中滞后的问题。 解决方案:在treeView的MouseDown事件里面写如下代码: MouseDown事件发生在Click事件之前,在这个时候就把SelectedN 阅读全文

posted @ 2016-04-08 08:48 缠禅 阅读(4321) 评论(1) 推荐(0)

C#在dataGridView中遍历,寻找相同的数据并定位
摘要:1、 C#在dataGridView中遍历,寻找相同的数据并定位 [c-sharp] view plain copy int row = dataGridView1.Rows.Count;//得到总行数 int cell=dataGridView1.Rows[1].Cells.Count;//得到总列数 for (int i = 0;... 阅读全文

posted @ 2016-04-01 09:32 缠禅 阅读(5647) 评论(0) 推荐(1)

C#使用Linq对DataGridView进行模糊查找
摘要:针对DataGridView中已进行过数据绑定,即已向DataGridView中添加了一些数据,可以结合Linq查询,并让匹配查询的行高亮显示,如下图: 具体实现如下: [csharp] view plain copy using System; using System.Collections.Generic; using System.Linq; usin... 阅读全文

posted @ 2016-04-01 08:48 缠禅 阅读(3512) 评论(0) 推荐(0)

导航