随笔 - 745, 文章 - 1, 评论 - 180, 阅读 - 155万
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理
< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5

03 2013 档案

摘要:这些技巧不好找,我归类总结了一下,对大家访问使用也方便,好了,列表如下:1.怎样定制VC#DataGrid列标题? DataGridTableStyledgts=newDataGridTableStyle(); dgts.MappingName="myTable";//myTable为要载入数据的DataTable DataGridTextBoxColumndgcs=newDataGridTextBoxColumn(); dgcs.MappingName="title_id"; dgcs.HeaderText="标题ID"; dgts 阅读全文

posted @ 2013-03-25 13:54 moss_tan_jun 阅读(575) 评论(0) 推荐(0) 编辑

摘要:使用Regex类需要引用命名空间:using System.Text.RegularExpressions;利用Regex类实现验证示例1:注释的代码所起的作用是相同的,不过一个是静态方法,一个是实例方法var source = "刘备关羽张飞孙权";//Regex regex = new Regex("孙权");//if (regex.IsMatch(source))//{// Console.WriteLine("字符串中包含有敏感词:孙权!");//}if (Regex.IsMatch(source, "孙权" 阅读全文

posted @ 2013-03-25 10:33 moss_tan_jun 阅读(304) 评论(0) 推荐(0) 编辑

点击右上角即可分享
微信分享提示