上一页 1 ··· 286 287 288 289 290 291 292 293 294 ··· 337 下一页
摘要: -- 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 阅读(385) 评论(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 阅读(1619) 评论(0) 推荐(0)
摘要: 存储过程中如果有临时表,或者有复杂的业务逻辑,此时,要生成DataSet会失败。CREATE PROCEDURE [dbo].[usp] AS BEGIN SET NOCOUNT ON SELECT * INTO #temptable FROM cust... 阅读全文
posted @ 2009-07-23 12:57 emanlee 阅读(446) 评论(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 阅读(3983) 评论(0) 推荐(0)
摘要: Question: datagridview里有一列checkbox,为何单击选中不了它,也就是打不上勾.不知为何啊,请大家帮帮忙 Code Snippet             // chkId        ... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(7199) 评论(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 阅读(29372) 评论(0) 推荐(1)
摘要: 项目中需要一个这样的DataGridView(字段不同): 1. DataSource绑定到一个DataTable上,这里假设DataTable有两个字段:ID, Name。 2. 第一列为CheckBox,让用户来选,提交的时候就提交CheckBox选中的。     我开始的时候是先在DataGridView初始化的时候就加入一列CheckBox,然后再把DataS... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(8893) 评论(0) 推荐(0)
摘要: 今天在winform下使用DataGridView时,使用了checkbox列。一般我们可以通过一个按钮的单击事件中,来判断该列是否被选中。但这样似乎不太人性化。因此改为当checkbox被选中时,执行任务。 可别小看了这个问题。我试了很多的datagridview事件,比如 cellClick CellContentChanged 等事件,要不就是无法扑捉,要不就是得到的值为选中前的值:fals... 阅读全文
posted @ 2009-07-21 19:57 emanlee 阅读(7220) 评论(1) 推荐(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 阅读(239) 评论(0) 推荐(0)
摘要: 写在前面:如果大家觉得.Net自带的GroupBox控件太差了,样子很不美观,而想用.Net强大的自定义功能来实现定制控件,如,在GroupBox的Title那里加个Button形状的东西,给GroupBox的四周的角都变成圆的,给GroupBox加个背景色,并且有过渡效果。那,请您看看,下面的效果图,是不是您所需要的?就是不是你需要的,但是不是有很大的参考价值?应该是吧。 介绍此自定义控件的源网... 阅读全文
posted @ 2009-07-21 19:56 emanlee 阅读(5415) 评论(0) 推荐(0)
上一页 1 ··· 286 287 288 289 290 291 292 293 294 ··· 337 下一页