Category Archives: WPF & DevExpress

Drag and Drop Grid Control Row DevExpress WPF


To simply drag a grid row and drop it in another grindcontrol follow these steps below forexample we have 2 gridcontrols with both a tableview, lets call them grid1 and gridview1grid2 and gridview2 first add these 2 events to yr … Continue reading

Posted in WPF & DevExpress | Tagged , , , , , | Leave a comment

Alternate / Alternating / Odd / Even row color GridControl DevExpress WPF


1: Add this to your gridcontrol tableview RowStyle=”{StaticResource OddEvenRowStyle}” 2: Add this to yr Resources<SolidColorBrush x:Key=”evenRowBrush” Color=”#FFDCE2E2″ /><SolidColorBrush x:Key=”oddRowBrush” Color=”#FFFFFF” />        <Style x:Key=”OddEvenRowStyle” BasedOn=”{StaticResource {dxgt:GridRowThemeKey ResourceKey=RowStyle}}” TargetType=”{x:Type dxg:GridRowContent}”>    <Style.Triggers>         <MultiDataTrigger>            <MultiDataTrigger.Conditions>                <Condition Binding=”{Binding Path=EvenRow}” Value=”False”/>                <Condition Binding=”{Binding Path=SelectionState}” Value=”None”/>            … Continue reading

Posted in WPF & DevExpress | Tagged , , , , , | Leave a comment

Grid Control / GridControl with CellTemplate and Checkbox or Checkedit unchecks or checks other unchecked checkboxes when scrolling or checkbox comes up when new visual rows displays – DevExpress WPF


I had a grid with a custom Celltemplate with a checkbox/checkedit in it, when i selected the items that i wanted to add to my list and scrolled down to add some more I found out that the checkboxes that … Continue reading

Posted in WPF & DevExpress | Tagged , , , , , , | Leave a comment

Create Check or Radio list style Listbox – StyleSettings ListBoxEdit DevExpress


Create a Checked ListBox or a Radio Listbox with DevExpress WPF

Posted in WPF & DevExpress | Tagged , , , , , | Leave a comment

ComboBox IsReadOnly Vs IsHitTestVisible (Read only ComboBox)


  To make a ComboBox in WPF/DevExpress really read only and not being able to select another item use IsHitTestVisible to False, cause with IsReadOnly you can select an item in the ComboBox. IsReadOnly means you can select an item … Continue reading

Posted in WPF & DevExpress | Leave a comment

Change the Theme of DevExpress WPF Application in runtime


  To simply change the theme of your DevExpress WPF application during runtime use ThemeManager.SetThemeName(this, “Office2007Blue”); available themes are:    Seven   LightGray   DeepBlue   Office2007Black   Office2007Blue   Office2007Silver

Posted in WPF & DevExpress | 1 Comment

Change Background Color of Grid Column Cell – WPF DevExpress


How To Change the background color of a grid cell in WPF in a (DevExpress) Grid First Create a Class for example StateConverter that inherits from MarkupExtension, and IValueConverter Add this to your main window:xmlns:dxgt=”http://schemas.devexpress.com/winfx/2008/xaml/grid/themekeys”xmlns:local=”clr-namespace:*YourNameSpace*&#8221; And Add this to your … Continue reading

Posted in WPF & DevExpress | 1 Comment