一佳一

记录像1+1一样简洁的代码
随笔 - 396, 文章 - 0, 评论 - 95, 阅读 - 107万

导航

< 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

11 2010 档案

摘要:先把需要过滤的条件封转成listList A List = new List A();//分组查询var P= List .GroupBy(x = new { x.Age, x.Sex }) .Select(group = new { Stu= group.Key, Amount= group.sum(x=x.FAmount) });//遍历集合foreach (var a in P) {intAmount= p.Amount;int Age = p.Stu.Age} 阅读全文

posted @ 2010-11-30 16:58 一佳一 阅读(885) 评论(0) 推荐(1) 编辑

摘要:在Gridview创建一列.将该列的UnboundType属性设置为bound(默认值)以外的数据类型为该列设置一个窗体内全局唯一的FieldName,注意这个FieldName甚至不能出现在窗体上其它XtraGrid中 最后在CustomUnboundColumnData事件处理程序中实现非绑定列的绑定,代码如下:private void gridView1_CustomUnboundColum... 阅读全文

posted @ 2010-11-16 10:01 一佳一 阅读(2770) 评论(0) 推荐(1) 编辑

摘要:using DevExpress.XtraEditors;using DevExpress.XtraEditors.Controls;using DevExpress.XtraGrid;using DevExpress.XtraGrid.Views.BandedGrid;using DevExpress.XtraGrid.Views.BandedGrid.ViewInfo;using DevExp... 阅读全文

posted @ 2010-11-05 13:06 一佳一 阅读(3058) 评论(0) 推荐(1) 编辑

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