devexpress-windows-ui

Data Annotation for column width

橙三吉。 提交于 2021-01-26 22:49:21
问题 I'm binding a collection of objects to a DevExpress GridControl, and using 15.1 Data Annotations to customise the look. However I'm struggling to find anything about setting column size of a property. Is this possible through annotations? Class with annotations: public class DataFeedback { [Display(Name = "Row Num", Order = 0)] public int RowNum { get; set; } [Display(Name = "Description", Order = 1)] public string Desc { get; set; } public DataFeedback(int rowNum, string desc) { RowNum =

Change column editor type without changing filter editor type in GridControl

淺唱寂寞╮ 提交于 2019-12-25 02:57:48
问题 I have the following GridColumn defined: new GridColumn{ Visible = true, FieldName = "blah", Name = "blah", ColumnEdit = new RepositoryItemGridLookUpEdit{ DisplayMember = "Name", ValueMember = "Id", DataSource = ViewModel.Components } } This works fine and changes the editor of my blah column to a the correct editor, but it also has an unwanted side-effect of changing the AutoFilterRow editor for that column to that same GridLookUpEdit . I want the filter to be just a regular text edit field.

How to use Grid inside Grid (Nested Grid) on Devexpress tools in WPF

瘦欲@ 提交于 2019-12-24 05:04:29
问题 I am stuck here that how i can use nested grid on devexpress grid control.I research alot but couldn't find anything good.Here is my XAML <dxdo:LayoutPanel Caption="Photography Jobs" AllowClose="False" Name="pnlShotoJobs" GotFocus="pnlShotoJobs_GotFocus"> <my:GridControl Name="dgPhotoJobs" MouseDoubleClick="dgPhotoJobs_MouseDoubleClick"> <my:GridControl.Columns> <my:GridColumn FieldName="JobName" Name="grdColumnJobName" /> <my:GridColumn FieldName="JobDate" Name="grdColumnJobDate" /> </my

Devexpress master-detail in 2 gridcontrols

吃可爱长大的小学妹 提交于 2019-12-11 10:45:59
问题 How do I display the master-detail view in 2 grids instead of one grid. Here's how I populate the grid currently and it does show master-detail view. I don't know how to set the relation or DataMember property (as shown in some examples that use database) in case of using 2 grid controls to create a relation with the current data structure. public class Master { public int id { get; set; } public List<Sub> subs { get; set; } } public class Sub { public int id { get; set; } public string name

DevExpress XtraGrid RepositoryItemButtonEdit event is not firing

人走茶凉 提交于 2019-12-10 13:26:07
问题 I have added a new ButtonEdit column to my gridview, I turned buttons to ImageButton. I added button_click event but event is not firing. Should I bound - unbound something to my columnbutton? Here are the properties: // // gvPrompt // this.gvPrompt.Columns.AddRange(new DevExpress.XtraGrid.Columns.GridColumn[] { this.gcID, this.gcName, this.gcPromptFileName, this.gcTypeName, this.gcDomainName, this.gcPromptText, this.gcLanguage, this.gcPromptPlayType, this.gcDuration, this.colPlayPrompt}); *

How can I prevent Visual Studio from creating license.licx

▼魔方 西西 提交于 2019-12-06 20:16:13
问题 We use 3rd party controls in our project. Almost every time when I double click on a file which has a design view too, Visual Studio tries to bring up the designer with heroic effort, and after some unresponsiveness it delivers (gives birth to) a license.licx file into our solution. That unnecessarily disturbs the source control: the file addition modifies the csproj too, and also the original code file plus the designer.cs gets checked out (although they don't have any modification in them).

Windows Form Memory leak

不想你离开。 提交于 2019-12-06 07:36:07
问题 I see a slight memory leak in my windows application. I use DevExpress XtraForm in my application. What I see is one instance of the form is always being kept in memory. If you open the same form multiple times it still keeps the reference of last form opened. Ex. if you open 10 different form in the application and close all of them it would still not release the memory assigned to it because of some weird "MdiClient object references LayoutEventArgs object". Fortunately it keep reference of

Direct2D / GDI+ and slow Windows forms drawing - What can be done?

不打扰是莪最后的温柔 提交于 2019-12-06 04:39:09
问题 I'm working a lot with Visual Studio 2008, .NET C# 2.0-3.5 and Windows Forms and I have noticed, like many before me, that GDI+ is extremely slow in drawing Controls. Note that I do not deal with images (JPG, GIF etc) very much. Images are only as icons in certain places. This is actually Controls/Forms/etc that are slow to draw. The issue is that you can see Controls being drawn and it can take several seconds for a seemingly easy set of Controls to be drawn. Ie, its lagging and horrible. I