贤人必须成人,成人才能达己.

共同进步

  :: :: 博问 :: 闪存 :: 新随笔 :: :: :: 管理 ::

2008年1月31日

摘要: //只读属性设置 dgv.ReadOnly = true; //尾行自动追加 dgv.AllowUserToAddRows = false; dgv.AllowUserToDeleteRows... 阅读全文
posted @ 2008-01-31 11:58 adi 阅读(506) 评论(0) 推荐(0) 编辑

2008年1月29日

摘要: AllowUserToAddRows=false; 阅读全文
posted @ 2008-01-29 11:47 adi 阅读(1806) 评论(0) 推荐(0) 编辑

摘要: int count = 0; for (int i = 0; i < this.TableData.Rows.Count; i++) { if (this.TableData.Rows[i].Cells[0].FormattedValue.ToString() == "True") { ... 阅读全文
posted @ 2008-01-29 11:46 adi 阅读(916) 评论(0) 推荐(0) 编辑

2008年1月27日

摘要: using System;using System.Collections;using System.ComponentModel;using System.Data;using System.Web;using System.Web.Services;using System.Web.Services.Protocols;using System.Xml;namespace WebService... 阅读全文
posted @ 2008-01-27 18:04 adi 阅读(182) 评论(0) 推荐(0) 编辑

摘要: public IList GetPlatCount() { IList PlatCount = new List(); string sql = string.Format("select PlatformId ,S_PassIdNum ,E_PassIdNum from PlatformAssign "); D... 阅读全文
posted @ 2008-01-27 17:56 adi 阅读(194) 评论(0) 推荐(0) 编辑

摘要: if (this.dataGridView1.CurrentRow != null && this.dataGridView1.CurrentRow.Cells["Column3"].Value != null) int i = int... 阅读全文
posted @ 2008-01-27 17:54 adi 阅读(141) 评论(0) 推荐(0) 编辑

2008年1月13日

摘要: if ((e.KeyChar 57) && (e.KeyChar != 8)) e.Handled = true; 阅读全文
posted @ 2008-01-13 21:05 adi 阅读(215) 评论(0) 推荐(0) 编辑

2008年1月11日

摘要: AgentLogin formLogin = new AgentLogin(new CSShell()); if (formLogin.ShowDialog() == DialogResult.OK) { Application.Run(new InfoServerQuery(new CSShell())); 阅读全文
posted @ 2008-01-11 16:45 adi 阅读(140) 评论(0) 推荐(0) 编辑

2008年1月2日

摘要: CONVERT将某种数据类型的表达式显式转换为另一种数据类型。由于某些需求经常用到取日期格式的不同.现以下可在SQL Server中 将日期格式化. SQL Server 支持使用科威特算法的阿拉伯样式中的数据格式。 在表中,左侧的两列表示将 datetime 或 smalldatetime 转换为字符数据的 style 值。给 style 值加 100,可获得包括世纪数位的四位年份 (yyyy... 阅读全文
posted @ 2008-01-02 22:32 adi 阅读(247) 评论(0) 推荐(0) 编辑

2007年12月27日

摘要: 阅读全文
posted @ 2007-12-27 17:08 adi 阅读(234) 评论(0) 推荐(0) 编辑