上一页 1 ··· 290 291 292 293 294 295 296 297 298 ··· 341 下一页
摘要: 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 阅读(1620) 评论(0) 推荐(0)
摘要: 存储过程中如果有临时表,或者有复杂的业务逻辑,此时,要生成DataSet会失败。CREATE PROCEDURE [dbo].[usp] AS BEGIN SET NOCOUNT ON SELECT * INTO #temptable FROM cust... 阅读全文
posted @ 2009-07-23 12:57 emanlee 阅读(448) 评论(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 阅读(29395) 评论(0) 推荐(1)
摘要: 今天在winform下使用DataGridView时,使用了checkbox列。一般我们可以通过一个按钮的单击事件中,来判断该列是否被选中。但这样似乎不太人性化。因此改为当checkbox被选中时,执行任务。 可别小看了这个问题。我试了很多的datagridview事件,比如 cellClick CellContentChanged 等事件,要不就是无法扑捉,要不就是得到的值为选中前的值:fals... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(7228) 评论(1) 推荐(0)
摘要: 项目中需要一个这样的DataGridView(字段不同): 1. DataSource绑定到一个DataTable上,这里假设DataTable有两个字段:ID, Name。 2. 第一列为CheckBox,让用户来选,提交的时候就提交CheckBox选中的。     我开始的时候是先在DataGridView初始化的时候就加入一列CheckBox,然后再把DataS... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(8900) 评论(0) 推荐(0)
摘要: Question: datagridview里有一列checkbox,为何单击选中不了它,也就是打不上勾.不知为何啊,请大家帮帮忙 Code Snippet             // chkId        ... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(7218) 评论(0) 推荐(0)
上一页 1 ··· 290 291 292 293 294 295 296 297 298 ··· 341 下一页