GridView1.Rows[i]只是表示取得當(dāng)前行,若在GRIDVIEW的相關(guān)的事件中取得當(dāng)前行方法可以為:e.Row.RowState
剛剛在看C#學(xué)習(xí)筆記,發(fā)現(xiàn)一個arity的單詞,好像以前接觸過,我還以為是書印刷錯的,經(jīng)過放狗查詢,找到如下解釋:
arity 元數(shù) arity 是一個合成詞,源于如binary (arity=2)、tertiary (arity=3),等等中的后綴。
CodeSmith 4.1.2 專業(yè)版 破解下載地址
.NET設(shè)計模式,最近沒時間看了,先記錄一下,以后再看。
http://terrylee.cnblogs.com/archive/2006/06/01/334911.html
//比較DateTime類型 DateTime dt1=DateTime.Now; DateTime dt2=Convert.ToDateTime ("2006-11-09 18:04:11"); if(dt1.CompareTo (dt2)< 0) //CompareTo:0-兩者相等 Response.Write ("<script>alert(\"dt1<dt2\");</script>"); else Response.Write ("<script>alert(\"dt1>dt2\");</script>"); //比較string DateTime dt3=DateTime.Now ; string strdt3=dt3.ToString ("yyyy-MM-dd HH:mm:ss"); string strdt4="2006-11-09 18:04:11"; //字符串比較時,主要把時間都轉(zhuǎn)換成yyyy-MM-dd HH:mm:ss的格式 if (strdt3.CompareTo(strdt4)<0)//CompareTo:0-兩者相等 Response.Write ("<script>alert(\"strdt3<strdt4\");</script>"); else Response.Write ("<script>alert(\"strdt3>strdt4\");</script>");