12 2011 档案

摘要:整数或者小数:^[0-9]+\.{0,1}[0-9]{0,2}$只能输入数字:"^[0-9]*$"。只能输入n位的数字:"^\d{n}$"。只能输入至少n位的数字:"^\d{n,}$"。只能输入m~n位的数字:。"^\d{m,n}$"只能输入零和非零开头的数字:"^(0|[1-9][0-9]*)$"。只能输入有两位小数的正实数:"^[0-9]+(.[0-9]{2})?$"。只能输入有1~3位小数的正实数:"^[0-9]+(.[0-9]{1,3})?$"。只 阅读全文
posted @ 2011-12-22 17:46 春華秋實 阅读(213) 评论(0) 推荐(0)
摘要:找的时候费了很大的劲,特别记录一下private void dgvServiceItem_EditingControlShowing(object sender, DataGridViewEditingControlShowingEventArgs e) { DataGridView dgvTemp = (DataGridView)sender; if (dgvTemp.CurrentCell.RowIndex != -1 && dgvTemp.CurrentCell.ColumnIndex == 1) { ... 阅读全文
posted @ 2011-12-02 11:56 春華秋實 阅读(302) 评论(0) 推荐(0)