posted @ 2010-12-31 14:01
12 2010 档案
摘要:/// summary /// 将集合类转换成DataTable /// /summary /// param name="list"集合/param /// returns/returns public static DataTable ToDataTable(IList list) { DataTable result = new DataTable(); if (list.Count 0) { PropertyInfo[] propertys = list[0].GetType().GetProperties(); foreach (PropertyInfo
阅读全文
摘要:Devpress.XtraGrid.GridControl.GridView 属性 说明Options OptionsBehavior 视图的行为选项 AllowIncrementalSearch 允许用户通过输入想得到的列值来定位行 AllowPartialRedrawOnScrolling 允许视图在垂直滚动中局部刷新 AutoExpandAllGroups 自动展开视图中的所有组 AutoPopulateColumns 当视图中没有某些数据源中的字段时,在视图中自动创建这些列 AutoSelectAllInEditor 在一个单元格编辑中,是否允许通过Ente
阅读全文
posted @ 2010-12-22 10:32
摘要:using DevExpress.XtraGrid.Views.Grid.ViewInfo;using DevExpress.XtraGrid;// 声明: private GridHitInfo downHitInfo;设置多行选中GridView1.OptionsSelection.MultiSelect = true;//事件处理://要拖动的数据 private void GridControl1_MouseDown(object sender, MouseEventArgs e) { downHitInfo = GridView1.CalcHitInfo(new Point(e.X,
阅读全文
posted @ 2010-12-21 11:30
摘要:http://findicons.com/ 很好的图标网址 要找图标这里基本都可以满足滴
阅读全文
posted @ 2010-12-16 16:43
摘要:private void gridDeliveryDetail_KeyDown(object sender, KeyEventArgs e) { if (e.KeyCode == Keys.Delete) { if (MessageBox.Show("删除行?", "确认", MessageBoxButtons.YesNo) != DialogResult.Yes) return; int i = viewDeliveryDetail.FocusedRowHandle; if (i = 0) { viewDeliveryDetail.DeleteRow(i); } } }
阅读全文
posted @ 2010-12-07 17:39