devexpress

InvalideOperationException / invoke

点点圈 提交于 2019-12-24 07:07:50
问题 the following code is used to trigger invoke (code is reduced, i left out the error handling in this example to make it more clear) public static void InvokeIfNecessary(this Control control, MethodInvoker methodInvoker) { if (control != null && !control.IsDisposed && !control.Disposing) { if (control.InvokeRequired) { control.Invoke(methodInvoker); } else { methodInvoker(); } } } Normally it works fine, but sometimes if i call a method of a Form an InvalidOperationException is given.

TileControl Devexpress

≯℡__Kan透↙ 提交于 2019-12-24 05:44:09
问题 I have developed an application using TileControl and on Clicking the Tiles, it is navigating to forms. The forms contains GridControl and when I am performing double click event on gridview,it is navigating to another form and displaying a result. Now the Problem is, when i am clicking the back button of Tile Menu,it is directly showing the main menu,instead of form having GridControl. I want to show the GridControl first and then the Main Menu. Please help me with a solution. 回答1: I far as

How to highlight a particular row in a page of a DevExpress MVC GridView?

|▌冷眼眸甩不掉的悲伤 提交于 2019-12-24 01:53:52
问题 I want to select a particular row of a DevExpress MVC GridView, which contains a keyvalue. I tried the following codes in the gridview. settings.DataBound = (sender, e) => { MVCxGridView grid = (MVCxGridView)sender; grid.PageIndex = 5; }; settings.PreRender = (sender, e) => { MVCxGridView grid = (MVCxGridView)sender; grid.FocusedRowIndex = grid.FindVisibleIndexByKeyValue(35); }; Here what I wish to get is to highlight the row of 5th page which contains the keyvalue 35. The above code does not

How to add new line of row in devexpress gridcontrol?(WinForms C#)

拟墨画扇 提交于 2019-12-24 01:39:18
问题 I want to add a new line of row when pressing a button. In datagridview it would be: datagridview1.Rows.Add() What is the equivalent code for that in gridcontrol? Please help me. 回答1: You cannot add a new row directly to your GridControl , since this is just a container for the views. However, if you're using a GridView inside your GridControl (or any other descendant of ColumnView), you can add a new row using AddNewRow() method. (myGridcontrol.MainView as DevExpress.XtraGrid.Views.Grid

Paging in Devexpress XtraGrid GrdiControl for Windows Application

纵然是瞬间 提交于 2019-12-24 00:37:17
问题 How do I do paging in devexpress gridcontrol for c# windows application 回答1: Check out Server Mode http://www.devexpress.com/Help/?document=XtraGrid/CustomDocument2990.htm&levelup=true 来源: https://stackoverflow.com/questions/1859346/paging-in-devexpress-xtragrid-grdicontrol-for-windows-application

DevExpress控件使用经验总结

淺唱寂寞╮ 提交于 2019-12-23 21:34:26
原文链接: DevExpress控件安装、汉化使用教程 - 田园里的蟋蟀 学习网址: 1、 DevExpress控件中文网 2、 DevExpress控件中文网使用教程 3、 DevExpress控件使用经验总结 ( 伍华聪)的专栏 )仅供参考 4、DevExpress使用教程:常用Winform界面封装 自己百度吧,不让添加链接 下载地址: DevExpress 14.1.4安装程序(附破解补丁) 我安装的是 14.1.4版本,安装软件存放在百度云平台,详细安装过程参考:参考博文。我的安装过程如下: 安装步骤1:开始安装 双击:DevExpressComponents-14.1.4.exe 安装步骤2:选择需要安装的模块 安装步骤3:修改安装路径 安装完成。 安装步骤4:破解; 解压运行:DevExpress.Patch v6.2.rar 运行完启动vs2010,会自动附加到工具箱中。 来源: https://www.cnblogs.com/wuling129/p/5360070.html

DevExpress ASP.Net Component on Mono

橙三吉。 提交于 2019-12-23 20:52:38
问题 I'm a happy user of DevExpress components, though currently I'm still on a linux web host. In another thread I've spoken about my plans to move to a Windows environment so that I can use DevExpress's ASP.Net components. For some time now DevExpress's stand has been that their components is not likely to work on Mono, due to heavy usage of P/Invoke. Having no prior experience with their ASP.Net components, my question is, has anyone successfully used their ASP.Net controls under Mono? I've

How can I change the backcolor of a row in a DevExpress GridView?

China☆狼群 提交于 2019-12-23 19:08:29
问题 I have a DevExpress GridView in my form and I need to change some rows color due to a boolean value. What is the property that allows me to change the backcolor of a row ?? 回答1: You can change the row's color gradient in the RowStyle event handler: private void myGridView_RowStyle(object sender, DevExpress.XtraGrid.Views.Grid.RowStyleEventArgs e) { e.Appearance.BackColor = Color.Green; e.Appearance.BackColor2 = Color.LightGreen; } See: Customizing Appearances of Individual Rows and Cells 回答2:

How to use a TcxCustomDataSource in a TcxExtLookupComboBox?

白昼怎懂夜的黑 提交于 2019-12-23 18:15:47
问题 I use a TcxExtLookupComboBox from Devexpress and try to implement a custom datasource. I have set the customdatasource like this: procedure TMainForm.FormCreate(Sender: TObject); begin fDataSource := TMyDataSource.Create; cbotestSearch.Properties.View.DataController.CustomDataSource := fDataSource; end; TMyDataSource is defined here: unit Datasource; interface uses Classes, IBQuery, SysUtils, cxCustomData; type TSearchItem = class private BoldID: String; Display: String end; TMyDataSource =

Get index with value in Checked List Box

∥☆過路亽.° 提交于 2019-12-23 17:51:32
问题 I am actually finding that chkContactType.Items is empty when I step through the code. I even added a Watch to chkContactType.Items.Count and it is never anything but 0. I am severly confused now as it obviously isn't as my Insert method works fine which uses these same boxes and inserts the Value Member for each item.... I have some checked list box controls that I need to set the CheckState based on the item value as that is what is stored in the DB for an exsiting record. Unfortunately, I