devexpress

DevExpress的分隔条控件SplitterControl的使用

非 Y 不嫁゛ 提交于 2019-12-02 05:45:07
场景 Winform控件-DevExpress18下载安装注册以及在VS中使用: https://blog.csdn.net/BADAO_LIUMANG_QIZHI/article/details/100061243 参照以上将DevExpress安装并引进到工具箱。 在进行页面设计时通常会使用分隔条使窗体内的Panel等控件可以拖放。 那么DevExpress的分隔条控件SplitterControl是如何使用的。 注: 博客主页: https://blog.csdn.net/badao_liumang_qizhi 关注公众号 霸道的程序猿 获取编程相关电子书、教程推送与免费下载。 实现 在上面已经成功安装DevExpress后,在设计页面打开工具箱搜索SplitterControl 拖拽一个控件将其放在要使用分隔符的内部,注意要放在要使用分隔符的两个Panel的其中一个 的控件的内部,默认是靠在控件左侧。 可以通过设置其Dock属性调整其在控件内的位置。 分隔符效果 来源: https://www.cnblogs.com/badaoliumangqizhi/p/11732537.html

Find checkbox control in ASPxGridView

耗尽温柔 提交于 2019-12-02 04:03:10
I have a AspxGridView that has a checkbox dataitemTemplate inside a gridViewDatacheckColumn. Now I want to find that control for each row and uncheck/check them on runtime. Here's my code for the ASPxGridView: <dx:ASPxGridView ID="RadGrid2" runat="server" AutoGenerateColumns="False" ClientInstanceName="grid" KeyFieldName="StoreID" SettingsPager-Mode="ShowAllRecords" Width ="50%"> <Settings ShowVerticalScrollBar="true" /> <Columns> <dx:GridViewDataCheckColumn Caption="#" VisibleIndex="0" Width ="25%"> <DataItemTemplate> <dx:ASPxCheckBox ID="CheckBox1" runat="server"> </dx:ASPxCheckBox> <

VB.NET XtraGrid Change cell color after its value is edited

我怕爱的太早我们不能终老 提交于 2019-12-02 03:05:29
How can I change the XtrsGrid's (GridControl) cell background after its value has been updated/changed/edited? Can I do it in following event: AddHandler grdView.RowCellStyle, AddressOf grdView_RowCellStyle But this changes the color of whole Grid cells. Private Sub grdView_RowCellStyle(sender As Object, e As RowCellStyleEventArgs) e.Appearance.BackColor = Color.Blue End Sub EDIT: I need to turn every cell color change whenever a cell value is changed. I finally managed to do it in the following way! you need to handle two events: GridView.CellValueChanged GridView.CustomDrawCell You need to

Get item index from databound DevExpress CheckedListBoxControl

可紊 提交于 2019-12-02 00:09:22
问题 I am trying to find the index of a particular value from the CheckedListBoxControl. The CheckedListBoxControl has a DataSource, DisplayMember, ValueMember set to a DataTable and two columns receptively. Now I have to set the CheckedState Property to true by finding its index from CheckedListBoxControl by using some value from the ValueMember and then calling the SetItemChecked() method with that index. I'm not able to find any property or method which returns the index. Please help. 回答1: If a

DevExpress使用教程:XtraGridControl动态添加右键菜单

自古美人都是妖i 提交于 2019-12-01 22:14:23
在使用 GridControl 的时候经常需要添加右键菜单。一般的做法是自己创建菜单项,然后注册GridView的Mouse-Click事件,然后Show出定义好的菜单。但是涉及到一些单击事件会收到编辑器编辑状态影响,所以Mouse-Click事件不好用。 幸好,GridView自带了一个默认的右键事件,专门用于弹出右键菜单用: PopupMenuShowing 为了调用方便,设计成一个静态方法,调用的时候只用传入需要注册的网格就好: GridViewMenuHelper.CreateCopyCellItem(gdvw); 这里,为传入网格添加一个名为【复制XXX】(XXX为列头)的方法,可以将鼠标点中的Cell中的数据复制到剪贴板。 效果图如下: 实现代码如下: #region 添加复制Cell菜单 public static void CreateCopyCellItem(GridView View) { View.PopupMenuShowing += new PopupMenuShowingEventHandler(Create_CopyCellItem); } static void Create_CopyCellItem(object sender, PopupMenuShowingEventArgs e) { if (e.MenuType == DevExpress

DevExpress使用教程:Gridview下拉框

冷暖自知 提交于 2019-12-01 22:13:51
本人最近使用到 DevExpress Gridview 下拉框repositoryItemComboBox控件,下面就详细写一下这个实现的过程,分享一下,同时也是对这个知识再次熟悉一遍。 【 DXperience Universal Suite下载 】 一、绑定前准备 这一部分基本上是一些基础的知识,但也有些地方要注意的。 1、添加下拉框列 在Grid Designer中,添加一列,在这列的ColumnEdit熟悉中,可以选择这列的编辑样式,比如让这列是一个按钮或者选择框等等,这里我们选择下拉框,如图: 这个下拉框默认被命名为repositoryItemComboBox1,我们对这列的操作,就是对repositoryItemComboBox1的操作。 2、为gridview添加bindingSource 这里要用bindingSource作为数据源,这是为了实 现在repositoryItemComboBox1选择了一个值之后,gridview能够将它显示,repositoryItemComboBox的 很大一个缺陷就是当你选择一个值之后,不能像传统gridview下拉框那样,会让他显示在gridview中,而且当你鼠标点击另外一个单元格之后,就 会消失,变成空白或原来的数据。所以需要用bindingSource来绑定一个datatable

DevExpress控件使用技巧

空扰寡人 提交于 2019-12-01 22:13:37
DevExpress是一个比较有名的界面控件套件,提供了一系列的界面控件套件的DotNet界面控件。本文主要介绍我在使用DevExpress控件过程中,遇到或者发现的一些问题解决方案,或者也可以所示一些小的经验总结。总体来讲,使用DevExpress控件,可以获得更高效的界面设计以及更美观的效果。本文主要通过给出相应的例子以及相关界面效果来说明问题,希望大家能够从中获得好的知识和思路。 1、 应用Office2007和Office2010的界面主题 开始使用DevExpress的时候,发现程序界面效果好像没有出现Office的样式,只是有几种可怜的内置效果。经过查找发现需要在入口函数里面添加几行代码,如下所示。 DevExpress.UserSkins.OfficeSkins.Register(); DevExpress.UserSkins.BonusSkins.Register(); DevExpress.Skins.SkinManager.EnableFormSkins(); 指定界面主题效果,可以通过代码设置,指定主题的名称即可。 UserLookAndFeel.Default.SetSkinStyle("Office 2010 Blue"); 或者在界面中添加一个控件 DefaultLookAndFeel,设置其对应的界面效果即可实现整个设计时刻和运行时刻的界面效果

WPF界面开发必备技能!TreeListView - 如何快速更新多个项目属性

南楼画角 提交于 2019-12-01 22:05:09
DevExpress广泛应用于ECM企业内容管理、 成本管控、进程监督、生产调度,在企业/政务信息化管理中占据一席重要之地。通过DevExpress WPF Controls,您能创建有着强大互动功能的XAML基础应用程序,这些应用程序专注于当代客户的需求和构建未来新一代支持触摸的解决方案。 无论是Office办公软件的衍伸产品,还是以数据为中心的商业智能产品,都能通过该控件来实现。 本文主要为大家介绍在TreeListView中如何快速的更新多个项目的属性。在接下来的系列文章中,小编将为大家介绍一些DevExpress WPF控件的使用技巧和提示,希望能帮助到大家! DevExpress WPF Controls 下载 问题: 在更新100 000树列表项的属性时,性能比较差。即使从treelist.ItemsSource属性中删除数据源,TreeList仍会处理PropertyChanged事件,并使性能较差。接下来,尝试在性能分析器中检查结果: BeginDataUpdate() / end - 没有效果,但是DX PropertyChanged处理仍然是瓶颈; BeginInit() / end - 同样的问题; ItemsSource = null - DXTree仍处理已删除项目的PropertyChanged; 删除tree branch -

Get item index from databound DevExpress CheckedListBoxControl

旧巷老猫 提交于 2019-12-01 21:33:41
I am trying to find the index of a particular value from the CheckedListBoxControl . The CheckedListBoxControl has a DataSource, DisplayMember, ValueMember set to a DataTable and two columns receptively. Now I have to set the CheckedState Property to true by finding its index from CheckedListBoxControl by using some value from the ValueMember and then calling the SetItemChecked() method with that index. I'm not able to find any property or method which returns the index. Please help. If a list box control is bound to a data source, you can iterate throught all listbox items using the the

Temporary ASP.NET File conflicts building project in Visual Studio (devex components)

◇◆丶佛笑我妖孽 提交于 2019-12-01 21:03:19
问题 I am trying to build my project in Visual Studio (which had been fine until this morning when I came to my machine and it had restarted following a windows update) and now I am getting some errors pertaining to devex components, saying that: The type 'ASP.components_legendcontrol_ascx' exists in both 'c:\Users\~\AppData\Local\Temp\Temporary ASP.NET Files\temp\b2334824\769a6106\App_Web_legendcontrol.ascx.7e693e39.3dzqvxte.dll' and 'c:\Users\~\AppData\Local\Temp\Temporary ASP.NET Files\temp