上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 可以通过继承gridcontrol的形式来实现 定义DataGridDoubleClickCommand依赖属性 class MyGridControl : GridControl { public ICommand DataGridDoubleClickCommand { get { return 阅读全文
posted @ 2016-12-15 14:14 beautifulday 阅读(262) 评论(0) 推荐(0) 编辑
摘要: <TextBlock Name="textBlock" HorizontalAlignment="Left" Text="{Binding Value}"></TextBlock> 绑定的cell里面的值 <DataTemplate.Triggers> <MultiDataTrigger> <Mul 阅读全文
posted @ 2016-12-14 13:43 beautifulday 阅读(234) 评论(0) 推荐(0) 编辑
摘要: 查询所有数据库用户 select * from dba_users 查看数据库名称 select name from v$database 查看权限 select * from user_sys_privs 修改某个用户的密码 alter user scott identified by tiger 阅读全文
posted @ 2016-12-13 14:34 beautifulday 阅读(132) 评论(0) 推荐(0) 编辑
摘要: xmlns:sys="clr-namespace:System;assembly=mscorlib" 如只显示日期的时间部分 <dxg:GridColumn Header="测试" FieldName="整型"> <dxg:GridColumn.EditSettings> <dxe:TextEdit 阅读全文
posted @ 2016-12-13 09:49 beautifulday 阅读(1929) 评论(0) 推荐(0) 编辑
摘要: double sumPercentage = dt.AsEnumerable().Where(dr => { return dt.Rows.IndexOf(dr) > 0; }).Sum(e => Convert.ToDouble(e.Field<String>(6))) //计算某一列的值总和 E 阅读全文
posted @ 2016-12-09 11:17 beautifulday 阅读(8408) 评论(0) 推荐(0) 编辑
摘要: 一、在官网上下载tomcat 下载地址:http://tomcat.apache.org/download-60.cgi 下载完后解压 二、设置环境变量 1,JAVA_HOME C:\Program Files (x86)\Java\jdk1.6.0_10 2、CATALINA_HOME D:\tw 阅读全文
posted @ 2016-12-07 15:20 beautifulday 阅读(163) 评论(0) 推荐(0) 编辑
摘要: 要改变cell值得颜色 需要用到cellTemplate和convert <DataTemplate x:Key="PercentageCellColorTemplate"> <dxe:TextEdit Name="PART_Editor" Mask="p2" MaskType="Numeric" 阅读全文
posted @ 2016-12-07 11:20 beautifulday 阅读(1872) 评论(0) 推荐(0) 编辑
摘要: <dxg:GridColumn> <dxg:GridColumn.EditSettings> <dxe:TextEditSettings Mask="p2" MaskType="Numeric" MaskUseAsDisplayFormat="True"/> </dxg:GridColumn.Edi 阅读全文
posted @ 2016-12-07 10:15 beautifulday 阅读(1490) 评论(0) 推荐(0) 编辑
摘要: static void Main(string[] args) { Parallel.Invoke(Foo, Bar); } static void Foo() { Console.WriteLine("foo thread {0}",Thread.CurrentThread.ManagedThre 阅读全文
posted @ 2016-07-22 16:20 beautifulday 阅读(3022) 评论(0) 推荐(0) 编辑
摘要: 1、名称空间的引用 比如想使用System.Windows.Controls名称空间 首先需要把改名称空间所在的程序集presentationFramework.dll引用到项目里 然后在根元素的起始标签中写上一句:xmlns:c="clr-namespace:System.Windows.Cont 阅读全文
posted @ 2016-06-16 17:23 beautifulday 阅读(190) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页