取消当前选中行,但是无法取消初始绑定时的选择行 gdv_refer.FocusedRowHandle = -1; //判断当前有无数据选中,若index<0,没有数据选中 int index= gdv_refer.GetFocusedDataSourceRowIndex() ; //返回选中行的数据 ...
分类:
其他好文 时间:
2018-07-02 19:27:28
阅读次数:
169
1、 如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 2、 如何新增一条记录 (1)、gridView.AddNewRow() (2)、实现 gridView_InitNewRow 事件 3、如何解决 GridContr ...
分类:
其他好文 时间:
2018-06-30 14:49:57
阅读次数:
367
代码: private void gvSendConfirm_CustomDrawCell(object sender, DevExpress.XtraGrid.Views.Base.RowCellCustomDrawEventArgs e) { string sCurrTime=DbHelperS ...
DevExpress之GridControl控件小知识 一.当代码中的DataTable中有建数据关系时,DevExpress 的 GridControl 会自动增加一个子视图 .列名也就是子表的字段名 ,按下面方法自定义子视图 DevExpress控件,当Table建立关系后,子表显示的Grid设 ...
分类:
其他好文 时间:
2018-06-30 14:38:36
阅读次数:
182
异常提示: issue, place the grid into a container that will give a finite height to the grid, or manually specify the grid's Height or MaxHeight. Note that ...
分类:
其他好文 时间:
2018-06-25 15:04:29
阅读次数:
171
OptionsBehavior.Editable = true时,会有二个对象触发事件:view触发ShownEditor 事件(第一单击时)和内置编辑器的DoubleClick事件所以必须处理这二个事件:private void gridView1_ShownEditor(object sende ...
分类:
其他好文 时间:
2018-06-13 11:29:43
阅读次数:
215
刚接触DevExpress第三方控件,把GridControl的常见用法整理一下,以供参考: 说明: gcTest GridControl gvText GridView //隐藏最上面的GroupPanel 即去掉"Drag a Column Header Here To Group by tha ...
分类:
其他好文 时间:
2018-06-01 20:06:35
阅读次数:
160
DevExpress的GridControl提供方便的数据导出功能,可以方便的导出Exce,PDF,Html页面,world形式,无需写额外的代码,方便、快捷。 /// <summary> /// 导出表格 /// </summary> /// <param name="gridControl1"> ...
一、如何解决单击记录整行选中的问题 View->OptionsBehavior->EditorShowMode 设置为:Click 二、如何新增一条记录 (1)、gridView.AddNewRow() (2)、实现gridView_InitNewRow事件 三、如何解决GridControl记录能 ...
分类:
其他好文 时间:
2018-05-27 19:39:48
阅读次数:
196
设置Run Designer=>Views=> OptionsSelection下面的: EnableAppearanceFocusedCell = False,//鼠标移开,失去焦点,仍然保持其原有的样式风格 EnableAppearanceHideSelection = False//控制点击选 ...
分类:
其他好文 时间:
2018-05-14 19:03:35
阅读次数:
275