• 等级
  • 9260 访问
  • 6 原创
  • 1 转发
  • 1189494 排名
  • 0 评论
  • 0 获赞

VT:if 判断循环索引奇偶

<vt:expression var="r" args="i" expression="{0}/2" /><vt:if var="r" value="0" > 

2018-09-07 09:52:27

获取一汉字串的拼音首字母

 publicstaticstringGetSpellCode(stringCnstr)//Cnstr汉字串       {           stringtemp="";           for(inti=0;i           {               temp+=GetSpellCodeAt(Cnstr.Substring(i

2010-05-24 12:27:00

gridControl常用属性设置

1.隐藏最上面的GroupPanel gridView1.OptionsView.ShowGroupPanel=false;2.得到当前选定记录某字段的值 sValue=Table.Rows[gridView1.FocusedRowHandle][FieldName].ToString();3.数据只读 gridView1.OptionsBehavior.Editabl

2010-05-11 13:52:00

DEV中获取gridControl里当前选中行的数据

privatevoidgridView1_FocusedRowChanged(objectsender,DevExpress.XtraGrid.Views.Base.FocusedRowChangedEventArgse)       {           intintRowHandle=e.FocusedRowHandle;           objectoRevDa

2010-05-11 13:42:00

获取gridview中选择行时,前一次选择的行的数据

       privatevoidgridView1_BeforeLeaveRow(objectsender,DevExpress.XtraGrid.Views.Base.RowAllowEventArgse)       {           intintRowHandle=e.RowHandle;           objectoRevDate=gridVi

2010-05-11 13:41:00

身份证号验证并获取出生日期

privatevoidtxtSFZH_Validating(objectsender,CancelEventArgse)       {           if(txtSFZH.Text==null||txtSFZH.Text.ToString().Trim()=="")           {               return;           }

2010-05-11 13:38:00

winform的textbox中只能输入数字和一个小数点

privatevoidtxtZGZFJZMJ_KeyPress(objectsender,KeyPressEventArgse)       {           if((e.KeyChar9&&e.KeyChar!=.||((TextBox)(sender)).Text.IndexOf(.)>=0&&e.KeyChar==.)&&

2010-05-11 13:26:00

ql141406

关注
  • 粉丝 3
  • 关注 0