- 博客(5)
- 资源 (9)
- 收藏
- 关注
原创 GridControl应用点滴之控制单元格读写
在前面的文章有提到ReadOnly和AllowEdit可控制单元格的读写。 但此法只会应用于整列的单元格,有时我们会需要根据实际数据对象状态来决定读写权限。 这时我们可以通过GridControl.View中的ShowingEditor事件来处理 private void DataViewOnShowingEditor(object sender, S
2017-06-21 16:05:58 848 1
原创 GridControl应用点滴之Combobox
应用过程中有需要使得单元格具备Combobox的风格。 下面就应用方式,分两种状况说明:XAML代码和程序代码 XAML代码: <dxe:ComboBoxEdit x:Name="PART_Editor"
2017-06-21 15:56:57 1933 1
原创 GridControl应用点滴之ReadOnly Vs AllowEdit
在GridColumn中有两个控制读写属性:ReadOnly和AllowEdit 主要区别在于: ReadOnly为True时,则仍可显示单元格的编辑器,可以在编辑中进行诸如复制文字操作等; AllowEdit为True时,则在点击单元格时,不显示编辑器,也就无法进行诸如复制文字操作等。
2017-06-21 15:35:10 1381
原创 GridControl应用点滴之选中数据行事件
在很多应用场合下,我们期望选中GridControl中的数据行,通过“选中变化事件”来联动处理后续动作。 GridControl提供有两个事件可供我们处理 1、GridControl的SelectionChanged 2、GridControl.View的FocusedRowHandleChanged 前者,在GridControl选择行模式为单行模
2017-06-21 15:29:48 6179
原创 GridControl应用点滴之数据绑定
如上XAML配置代码,是一段设置GridControl列的代码。其中Binding段,特别设置了Mode为TwoWay。而实际上,Mode默认为Default,这种状况一下,程序会自动根据Property设置读写权限来决定。倘若没有显式设置为TwoWay,那么运行起来后的效果是:单元格无法编辑。以上测试效果是在DevExpress15.2中得出的结论。
2017-06-21 15:18:03 809
运行时Object Inspector
2014-06-26
TAPPBar任务栏
2014-06-16
TQRMultiExport - PDF and Image exporter
2010-03-10
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人