上一页 1 ··· 290 291 292 293 294 295 296 297 298 ··· 341 下一页
摘要: C# WinForm开发系列 - Open-Source Controls     整理了一些在WinForm开发中可以使用的开源组件.(文章及相关代码搜集自网络,仅供学习参考,版权属于原作者! ). 1. 仿office 2007的Ribbon风格面板(该控件模仿office 2007的Ribbon风格,显示操作面板。) 2. .NET中最全功能的表格控件 [翻... 阅读全文
posted @ 2009-07-26 10:50 emanlee 阅读(50531) 评论(0) 推荐(6)
摘要:   Add, Edit, and Delete in DataGridView with Paging http://www.codeproject.com/KB/grid/DataGridView_manipulation.aspx 4.45 out of 5   DataGridView paging using virtual mode http://b... 阅读全文
posted @ 2009-07-26 10:49 emanlee 阅读(880) 评论(0) 推荐(0)
摘要: for ACCESS 数据库: update a, b set a.name=b.name1 where a.id=b.id for SQL Server 数据库: "update a set a.name=b.name1 from a,b where a.id=b.id" 以下在SQL Serve 阅读全文
posted @ 2009-07-24 19:03 emanlee 阅读(35219) 评论(1) 推荐(1)
摘要: -- Try:/* format (123) 456-7 to 123-4567 */ select SUBSTRING('(123) 456-7', 2, 3) + '-' + SUBSTRING('(123) 456-7', 7, 3) + SUBSTRING('(123) 456-7', 11... 阅读全文
posted @ 2009-07-24 19:03 emanlee 阅读(387) 评论(0) 推荐(0)
摘要: Issue:canGrow=True, canShrink=False All the content are shrinked to the left in Safari. Export report as Excel, sometimes, it is in disorder format.canGrow=False, canShrink=False Some of the long text... 阅读全文
posted @ 2009-07-23 13:24 emanlee 阅读(1621) 评论(0) 推荐(0)
摘要: 存储过程中如果有临时表,或者有复杂的业务逻辑,此时,要生成DataSet会失败。CREATE PROCEDURE [dbo].[usp] AS BEGIN SET NOCOUNT ON SELECT * INTO #temptable FROM cust... 阅读全文
posted @ 2009-07-23 12:57 emanlee 阅读(449) 评论(0) 推荐(0)
摘要: 通过继承系统的ComboBox,写一个新控件ComboBoxEx,重写它的焦点以及文本更新事件,就可以轻松实现拼音首字母检索了。例如:输入 gd ,就可以出现“广东”。 1 using System; 2 using System.Collections.Generic; 3 using System.Text; 4 using System.Windows.Forms; 5 using Syst... 阅读全文
posted @ 2009-07-21 20:59 emanlee 阅读(3987) 评论(0) 推荐(0)
摘要: Gets or sets the text content of the RadComboBox control. Use RadComboBox1.Text NOT Use RadComboBox1.SelectedItem.Text 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(241) 评论(0) 推荐(0)
摘要: 方法一: private void dgv_zy_CellContentClick(object sender, DataGridViewCellEventArgs e) {             int count = Convert.ToInt16(dgv_zy.Rows.Count... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(29398) 评论(0) 推荐(1)
摘要: 项目中需要一个这样的DataGridView(字段不同): 1. DataSource绑定到一个DataTable上,这里假设DataTable有两个字段:ID, Name。 2. 第一列为CheckBox,让用户来选,提交的时候就提交CheckBox选中的。     我开始的时候是先在DataGridView初始化的时候就加入一列CheckBox,然后再把DataS... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(8901) 评论(0) 推荐(0)
上一页 1 ··· 290 291 292 293 294 295 296 297 298 ··· 341 下一页