Posts

Showing posts from January, 2016

devexpress wpf gridcontrol disable context menu

Image
If you want to disable any context menu item in devexpress grid like this.



In XAML


<dxg:GridControl x:Name="grdProfile" Width="1070" Height="400" HorizontalAlignment="Left" VerticalAlignment="Top" AutoGenerateColumns="None" ItemsSource="{Binding CusHisViewRefillHistoryList}" SelectedItem="{Binding SelectedCusHisViewRefillHistory}"> <dxg:GridControl.Columns> <dxg:GridColumn Width="100" Binding="{Binding RxNo}" Header="Rx #" /> <dxg:GridColumn Width="70" Binding="{Binding PhInitials}" Header="Ph. Initials" /> …