devexpress

Limit the input length of a DevExpress TextEdit and MemoEdit controls

邮差的信 提交于 2019-12-23 17:23:06
问题 I have a project with some 3rd-party controls in it. I have a TextEdit and a MemoEdit in my form and I want to limit the number of characters that the user can enter. 回答1: You can wait for the newest version but there are a few workarounds such as masking, helper properties and/or character counting on the text changed event. Here are some links to the workarounds: Mask workaround: http://www.devexpress.com/Support/Center/p/Q250641.aspx Helper property workaround: http://www.devexpress.com

What's the difference between GridControl and GridView in DevExpress?

旧巷老猫 提交于 2019-12-23 14:46:23
问题 What's the difference between GridControl and GridView in DevExpress? It seems GridControl is WinForm and GridView is WPF, however I am using gxg:GridContol in my XAML... Is there also any relationship between these? Found this for GridView, none for GridControl. Reason is that each time I'm looking for help tp solve my GridControl issues (DevExpress GridControl cells' inner text selectable but not editable), I am being answered with a GridView instead of GridControl. FYI, my grid is setup

What's the difference between GridControl and GridView in DevExpress?

為{幸葍}努か 提交于 2019-12-23 14:46:09
问题 What's the difference between GridControl and GridView in DevExpress? It seems GridControl is WinForm and GridView is WPF, however I am using gxg:GridContol in my XAML... Is there also any relationship between these? Found this for GridView, none for GridControl. Reason is that each time I'm looking for help tp solve my GridControl issues (DevExpress GridControl cells' inner text selectable but not editable), I am being answered with a GridView instead of GridControl. FYI, my grid is setup

Can I make row cell value readOnly on XtraGrid just for one row?

末鹿安然 提交于 2019-12-23 11:34:27
问题 How can I make a specific row cell readonly(not editable) on XtraGrid? For example just for row[0] but not all rows. 回答1: You can use the GridView.CustomRowCellEdit event: //... var repositoryItemTextEditReadOnly = new DevExpress.XtraEditors.Repository.RepositoryItemTextEdit(); repositoryItemTextEditReadOnly.Name = "repositoryItemTextEditReadOnly"; repositoryItemTextEditReadOnly.ReadOnly = true; //... void gridView1_CustomRowCellEdit(object sender, CustomRowCellEditEventArgs e) { if(e

This causes two bindings in the collection to bind to the same property. Parameter name: binding error in c#?

霸气de小男生 提交于 2019-12-23 09:35:16
问题 I have tried to bind a datasource to a DevExpress.XtraEditors.LookupEdit at run-time. I tried this code, but am getting the following error: This causes two bindings in the collection to bind to the same property. Parameter name: binding. Here is my code: // Create an adapter to load data from the "Customers" table. OleDbDataAdapter testcustomers = new OleDbDataAdapter( "SELECT CustomerId, Customername FROM Customer WHERE CompanyId =" + TXE_CompId.Text, connection); DataSet ds = new DataSet()

Data binding directly to a store query (DbSet, DbQuery, DbSqlQuery) is not supported Entity Framework 5

你。 提交于 2019-12-23 09:15:37
问题 I have a devexpress GridControl for which I am setting it's datasource like so: var regs = (from vcap in context.chaps select vcap); gridControl1.DataSource = new BindingList<chaps>(regs.ToList()); But when I use the grid, rows I add or delete don't get saved, only changes to the initial rows get saved. If I do this: gridControl1.DataSource = context.chaps.Local; I don't get any rows, and AddNewRow doesn't even add a new row visually. If I do this: gridControl1.DataSource = context.chaps

How to store and retrieve the RadioGroup Radio Button and CheckBox of Ribbon Control from Winforms Devexpress to MS Access Database?

血红的双手。 提交于 2019-12-23 05:25:38
问题 In my form I used Ribbon control in that RadioGroup is used for calculations. Now I need to store content of form and want to retrieve it back if I click in Gridview. I can able to store and retrieve textedit, lookup edit and checkedit outside Ribbon Control. How to store and retrieve the RadioGroup from Ribbon Control ?? example for storing CheckBox I used this code bool temp = barCheckItem1.Checked; In Access Database used "Yes/No" Data Type to store. For retrieve used this code

DevExpress XtraReport Setting a DateTime Parameter to Today

风格不统一 提交于 2019-12-23 03:29:08
问题 I am using DevXpress XtraReport v13.1 I have a dateTime parameter that I would like its default value to be current Day whenever it is used. When I leave the value of the parameter empty. it is understood by DevExpress as 1/1/0001 !!! It is important for me because the parameters will be applied as a filter to a database and I require to decrease the probability that user can fetch too much data from the database (that may affect the performance) Anyone have an idea of how to do that? 回答1: I

Databinding Exception Cannot format the value to the desired type hard to debug

末鹿安然 提交于 2019-12-23 03:29:05
问题 We're using a lot of databinding in our winforms application and we've recently hit some hard to debug scenario's. On calling ResumeBinding() on our BindingSource we receive an Exception: ex.Type FormatException ex.Message Cannot format the value to the desired type: at System.Windows.Forms.Binding.FormatObject(Object value) at System.Windows.Forms.Binding.PullData(Boolean reformat, Boolean force) at System.Windows.Forms.BindingManagerBase.PullData(Boolean& success) at System.Windows.Forms

Devexpress xaf ungroup layout of inherited class. (programmaticaly)

淺唱寂寞╮ 提交于 2019-12-23 02:22:24
问题 I am using devexpress xaf to create a multi platform app. I have class 'commonFields' which contains common fields "creation_date, created_by" etc. all other classes inherit from this class. My problem is that, in detailView layout, common fields are displayed in a group labled commonFields. I know it can be solved using the model editor where I can simply right click over the group and choose ungroup, but if I have lets say more than 50 tables I will have to edit all the layouts individually