Menu
  • HOME
  • TAGS

Change column editor type without changing filter editor type in GridControl

c#,devexpress,devexpress-windows-ui

You need to set GridColumn.FilterMode property to ColumnFilterMode.DisplayText value, it will allow filter values in your column by its DisplayText, so the field editor in AutoFilterRow will be changed to regular text editor: new GridColumn { Visible = true, FieldName = "blah", Name = "blah", FilterMode = ColumnFilterMode.DisplayText, //<= filter...

WinForm TokenEdit control with bitwise Enum ([Flags])

c#,devexpress,devexpress-windows-ui

Let's define the enum [Flags] public enum BeverageInfoEnum { Water = 1 << 0, HasAlcool = 1 << 1, Wine = 1 << 2, Soda = 1 << 3, Warm = 1 << 4 } The [Flags] attribute is mandatory here. Values can be mixed. The DevExpress TokenEdit has a...

custom summerType in xtraGrid gridControl

c#,gridview,xtragrid,devexpress-windows-ui,group-summaries

I found the solution here https://documentation.devexpress.com/#windowsforms/DevExpressXtraGridViewsGridGridView_CustomSummaryCalculatetopic Works perfect for me I create two private variables in my class private decimal _sumOfValues = 0; private decimal _sumOfTotalValue = 0; Created a custom summary type in the percentage column and in option Tag typed percentageColumnCustomSummary whitch is the ID of this summary...

Set Focus on row by cell value

c#,winforms,gridview,devexpress,devexpress-windows-ui

You can use LocateByValue method, which returns RowHandle of located row and set this value to FocusedRowHandle property: int rowHandle = PositionsReadyListGridView.LocateByValue("colID", ID); if (rowHandle != GridControl.InvalidRowHandle) PositionsReadyListGridView.FocusedRowHandle = rowHandle ...

Allow user to resize devexpress 14.1 Gridcontrol rows

c#,devexpress-windows-ui

By design, the GridView does not allow this. If you are looking to resize ALL the rows, you can run the designer for the GridView and look under OptionsCustomization. There will be a property called AllowRowSizing....set this to True. There is a 'workaround' though, which can be found here and...

DevExpress TreeList CheckBox checked event?

c#,devexpress-windows-ui

Seems like CellValueChanging should serve you well in this case.

Adding row in tree list after every child node

c#,devexpress,devexpress-windows-ui,xtratreelist,treelist

What you are looking for is the Preview Section. This feature is well described in the documentation: Preview Section The preview text can be supplied via event or bound to the datasource field. If the preview text is empty, the preview section is not painted. This behavior allows you to...