09 2008 档案
GridView 动态添加行并且刷新后保留记录
摘要:protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { createTable(); } } private void createTable() //创建一个表 { D... 阅读全文
posted @ 2008-09-28 15:30 sherry 阅读(3697) 评论(1) 推荐(0)
UltraWinGrid常用技巧
摘要:1 委托 this.ultraGrid1.AfterCellUpdate -= new Infragistics.Win.UltraWinGrid.CellEventHandler(this.ultraGrid1_AfterCellUpdate); this.ultraGrid1.Rows[0].Cells["字段名"].Value = ""; this.ultraGr... 阅读全文
posted @ 2008-09-27 16:07 sherry 阅读(8304) 评论(0) 推荐(0)
C#日期格式化
摘要:C#日期格式化 日期转化一 为了达到不同的显示效果有时,我们需要对时间进行转化,默认格式为:2007-01-03 14:33:34 ,要转化为其他格式,要用到DateTime.ToString的方法(String, IFormatProvider),如下所示: using System; using System.Globalization; String format="D"; DateTime... 阅读全文
posted @ 2008-09-27 16:06 sherry 阅读(342) 评论(0) 推荐(0)
有用的sql(将两表数据合为一个表)
摘要:select A.ID,A.V_Name,A.V_FileType, 0 as i_masterid,A.I_Size,A.v_serPath,A.v_serpath+A.v_serfilename filepath from P_FixFileList A where A.ID NOT IN (SELECT I_FixFileListID FROM P_DocFixFileList... 阅读全文
posted @ 2008-09-26 17:53 sherry 阅读(759) 评论(0) 推荐(0)
js 操作gridview
摘要:使用javascript操作GridView(获取当前行的值) function getIt(obj) { var r,c o = obj while(o.tagName != "TD" && o.tagName != "TH") o = o.parentNode if(o.tagName != "TD" && o.tagName != "TH") return c = o.cellIndex ... 阅读全文
posted @ 2008-09-01 17:06 sherry 阅读(873) 评论(1) 推荐(0)