Posts

Showing posts with the label DevExpress
Share:

DevExpress WPF GridControl | Q&A | Saatody | Amit Padhiyar

 How to hide group panel from table view of GridControl? You can hide group panel (filter panel or filter search panel) using ShowGroupPanel property. Set the value ShowGroupPanel = false will hide group panel from table view of GridControl. ShowGroupPanel = false How to add dynamic columns in GridControl? You can add, remove and clear columns using Grid.Columns. For adding new column, You should use Grid,Columns.Add(new GridColumn()). For better understanding you can see the below first example: Grid.Columns.Add(new GridColumn { FieldName = "Name", Visible = true }); Grid.Columns.Add(new GridColumn { FieldName = "Mobile", Visible = false }); Grid.Columns.Add(new GridColumn { FieldName = "Email", Visible = false }); Grid.Columns.Add(new GridColumn { FieldName = "Address", Visible = false }); Grid.Columns.Add(new GridColumn { FieldName = "Company", Visible = false }); Now if you want remove particular column then you should use Grid.Colu

Create Drag And Drop Operation Between DevExpress GridControl And Custom WPF UI | Saatody | Amit Padhiyar

 Today i will create Drag And Drop Operation. Actually, DevExpress GridControl support Drag and Drop in Views (TreeListView, TabelView, and CardView). But I am trying to drag GridControl row and drop on my custom UI. Here I will write about Drag and Drop with two clipboard operations. Drag Copy And Drop Drag Cut And Drop First set these two properties on GridControl And View (TreeListView, CardView, TableView). GridControl.AllowDrop = true; GridView.AllowDragDrop = true; GridView.AllowDrop = true; GridView.ShowDragDropHint = false; Due to ShowDragDropHint false, The hint will be disable and only cursor will change during DnD (Drag and Drop). First we create Drag Copy And Drop it is too simple to create drag and drop with copy data or element. We just prevent drag leave events using e.Handled = true. GridControl side coding GridControl.AllowDrop = true; GridView.AllowDragDrop = true; GridView.AllowDrop = true; GridView.ShowDragDropHint = false; GridView.StartRecordDrag += (sender, e) =

Create Custom DockManager V1_0_0 Using DevExpress | C# | WPF | Saatody | Amit Padhiyar

In this post, I will try to create simple API structure for DockManager. Actually, The DockManager parent class will derive from DockLayoutManager (DevExpress WPF). But there, I will create simple steps to add DocumentPanel(s). And also, Create some default restrictions like FloatingMode for floating panels, DestroyOnClosingChildren for default DocumentGroup. This API is for private use only. This is version V1_0_0. And Specially created for DocumentPanel(s) restrictions and for "easy to add" features. using DevExpress.Xpf.Docking; using DevExpress.Xpf.Layout.Core; namespace Saatody.Core.UI { public class DockManager : DockLayoutManager { private LayoutGroup Root = new LayoutGroup(); private DocumentGroup DocumentGroup = new DocumentGroup(); private DocumentPanel PreviousDocumentPanel = new DocumentPanel(); public DockManager() { // Load Default Dock this.FloatingMode = FloatingMode.Desktop;

DevExpress DockLayoutManager

using DevExpress.Xpf.Docking; using DevExpress.Xpf.Layout.Core; using System.Windows; using System.Windows.Controls; using System.Windows.Media; namespace Saatody.Module.Startup { public partial class SaatodyApplication : Window { private StartPage StartPage = new StartPage(); public SaatodyApplication() { InitializeComponent(); Event(); } private LayoutGroup Root = new LayoutGroup(); private LayoutGroup LG = new LayoutGroup(); private DocumentGroup DG = new DocumentGroup(); private TabbedGroup TG = new TabbedGroup(); private LayoutPanel LP = new LayoutPanel(); private DocumentPanel DP = new DocumentPanel(); private DocumentPanel TDP = new DocumentPanel(); private LayoutPanel TP = new LayoutPanel(); private void Event() { Dock.ShowingDockHints += (sender, e) => { if ((e.DraggingSource).GetType() == typeof(Do