C#
siyue_qi
挨踢,永远的梦,永远的痛。
展开
-
【C#】C# 中的常用正则表达式总结
只能输入数字:"^[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位小数的正实数转载 2008-05-20 19:37:00 · 417 阅读 · 0 评论 -
【C#】DataGridView 编程36计
① DataGridView 取得或者修改当前单元格的内容:GO TO TOP当前单元格指的是 DataGridView 焦点所在的单元格,它可以通过 DataGridView 对象的 CurrentCell 属性取得。如果当前单元格不存在的时候,返回Nothing(C#是null)[VB.NET] 取得当前单元格内容Console.WriteLine(DataGridV转载 2008-05-20 19:41:00 · 1299 阅读 · 0 评论 -
【C#】DataGridView的常用用法
DataGridView的常用用法//读取表Supplier并绑定到GridView中 private void BindGvSupplier() ...{ OracleConnection conn = this.Conn(); OracleCommand cmd = new OracleCommand( "select * from Su原创 2008-05-20 19:39:00 · 670 阅读 · 0 评论