Jump to content
Son zamanlarda artan kullanıcı hesap hırsızlıkları sebebiyle tüm kullanıcılara şifre sıfırlama maili gönderilmiştir. Lütfen güveli şifreler seçiniz. Mevcut e-mail adresinize erişemiyorsanız, en aşağıdaki destek linkinden bize ulaşınız. ×

C# Devexpress Ayrıntılı Grid (Master/detail Viev)


KintaRo
 Share

Recommended Posts

Grid kontrollerinde veri listelemeye daha önce bir çok kez değindik. Bu sefer ayrıntılı bir tablo görünümü oluşturalım. Bunun için DevExpress eklentisine ihtiyacımız var. Bu eklenti paketi sitemizde ve internette bir çok yerde var.

 

Bu iş için iki tane datatable tipinde tablo lazım. ve bunların birer kolonu bir biriyle eşleşmeli. Ben örnek olarak bir cari tablo oluşturdum ve bu cari kayıtlara ait harektleri listeledim. Master tablodaki Kod sütunu ile ayrıntı tablodaki Müşteri Kodu kolonları bir biriyle uyuşuyor dikkat ederseniz. Daha sonra bunları DataSet ile birbirine bağlıyoruz ve olaylar gelişiyor.

 

Not: proje VS 2013 CE ve DevExpress 14,2 ile yapılmıştır.

 

[spoiler]

using System;
using System.Data;
using System.Windows.Forms;

namespace DevEx_GridControl_Master_Detail
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
        }

        private void Form1_Load(object sender, EventArgs e)
        {
            DataTable master = new DataTable();
            DataTable detail = new DataTable();
            DataSet relation = new DataSet();

            master.Columns.Add("Kod");
            master.Columns.Add("İsim");
            master.Columns.Add("Şehir");
            master.Columns.Add("Telefon");

            master.Rows.Add("101", "Ali", "Mersin", "");
            master.Rows.Add("102", "Mustafa", "Hatay", "");
            master.Rows.Add("103", "Mehmet", "Ankara", "");
            master.Rows.Add("104", "Şakir", "Denizli", "");
            master.Rows.Add("105", "Mahmut", "İzmir", "");
            master.Rows.Add("106", "Recep", "Aydın", "");

            detail.Columns.Add("Tarih");
            detail.Columns.Add("Açıklama");
            detail.Columns.Add("Borç");
            detail.Columns.Add("Alacak");
            detail.Columns.Add("Müşteri Kodu");

            detail.Rows.Add("01.01.2015", "ELDEN", "10,00", "", "101");
            detail.Rows.Add("02.01.2015", "BANKADAN", "", "20,00", "101");
            detail.Rows.Add("03.01.2015", "KREDİ KARTI", "33,00", "", "101");
            detail.Rows.Add("04.01.2015", "ELDEN", "35,00", "", "102");
            detail.Rows.Add("05.01.2015", "BANKADAN", "", "44,00", "102");
            detail.Rows.Add("06.01.2015", "BANKADAN", "100,00", "", "102");
            detail.Rows.Add("07.01.2015", "KREDİ KARTI", "120,00", "", "103");
            detail.Rows.Add("08.01.2015", "BANKADAN", "", "50,00", "103");
            detail.Rows.Add("09.01.2015", "ELDEN", "60,00", "", "103");
            detail.Rows.Add("10.01.2015", "KREDİ KARTI", "98,00", "", "104");
            detail.Rows.Add("11.01.2015", "KREDİ KARTI", "", "100,00", "104");
            detail.Rows.Add("12.01.2015", "ELDEN", "80,00", "", "104");
            detail.Rows.Add("13.01.2015", "BANKADAN", "", "70,00", "105");
            detail.Rows.Add("14.01.2015", "KREDİ KARTI", "100,00", "", "105");
            detail.Rows.Add("15.01.2015", "ELDEN", "", "90,00", "105");
            detail.Rows.Add("16.01.2015", "BANKADAN", "70,00", "", "106");
            detail.Rows.Add("17.01.2015", "ELDEN", "", "50,00", "106");
            detail.Rows.Add("18.01.2015", "KREDİ KARTI", "80,00", "", "106");


            relation.Tables.Add(master);
            relation.Tables.Add(detail);

            relation.Relations.Add("Ayrıntı", master.Columns["Kod"], detail.Columns["Müşteri Kodu"]);

            gridControl1.LevelTree.Nodes.Add(relation.Relations["Ayrıntı"].RelationName, gviewDetail);

            gridControl1.DataSource = relation.Tables[0];
        }
    }
}
 

[/spoiler]

 

9nRMY8E.png

https://yadi.sk/d/Qk7UzV9HheeSe
Link to comment
Share on other sites

Bende açılmadı hatı satırına git dedim

 

            DevExpress.XtraGrid.GridLevelNode gridLevelNode1 = new DevExpress.XtraGrid.GridLevelNode();
            this.gviewDetail = new DevExpress.XtraGrid.Views.Grid.GridView();
            this.gridControl1 = new DevExpress.XtraGrid.GridControl();
            this.gviewMaster = new DevExpress.XtraGrid.Views.Grid.GridView();
 
Bende şu sürüm kurulu
DevExpress_v2014.1.6.rar
 
Ama birşeyleri bulamadığını söylüyor
pre_1436395256__adsz.jpg
Edited by korasoglu
Link to comment
Share on other sites

  • 4 ay sonra...

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Similar Content

    • By artae
      File Size: 445 MB

      EaseUS Partition Master Technician is an all-in-one partition manager software mainly designed for business, IT admin, technician, consultant and service provider to redistribute hard drive space with high efficiency and keep all PCs, laptops and servers running with perfect performance.

      The Best Partition Manager Software Ever
      EaseUS Partition Master Technician deals with all partition tasks efficiently without data loss. Just a few of clicks to repartition your HDD, SSD, USB, flash drive, SD card, memory card and more storage device well under Windows 10, 8.1, 8, 7, Vista, XP and Windows Server 2016, 2012, 2008, 2003.

      Create / Resize / Move Partition
      Reorganize partitions on PCs or Servers to settle down low disk problem and make full use of hard drive capacity. Also keep data security at first.

      Extend Partition
      Extend partitions specially system partition on C drive to a larger size to solve low disk problem and speed up your PCs, laptops and servers without restarting.

      Format / Delete / Wipe Partition
      Do careful partition deletion, partition formatting or wipe all sensitive data on partitions to reallocate disk space with high efficiency.

      Merge / Split Partition
      Merge partitions into a large one or divides partition into several partitions without data loss for better data storage solution.

      Disk or Partition Cloning Technician Toolkit
      Change your system disk from HDD to SSD? Transfer data and system from SSD to new SSD? Make an exact copy of a partition or entire disk to another one? The disk or partition cloning tool included in EaseUS Partition Master Technician offers an effective way to clone HDD to SSD easily, clone SSD to an another one or clone hard drive to HDD / SSD, without reinstalling system and configurations for hard disk upgrade and data protection.

      EaseUS Migrate OS to SSD or HDD
      EaseUS Partition Master Technician helps users to easily migrate OS to SSD or HDD without reinstalling Windows system and configurations to protect Windows system from potential risks. Transfer operating system from HDD to SSD or from SSD to HDD to upgrade your system disk, leave much more disk space for new system installing and speed up Windows system running.

      Full-Range Hard Disk Partitioning Software
      EaseUS Partition Master Technician combines disk partition tool, disk or partition copy utility with fast partition recovery wizard together to manage storage space on HDD, external hard drive, SSD, USB, SD card, memory card and other removable devices for great stability, flexibility and efficiency.

      Partition Recovery
      Fast restore partitions that are deleted unexpectedly on the unallocated space even when Windows system fails to boot up

      Disk or Partition Conversion
      Easily convert primary partition into logical, logical into primary, MBR disk including MBR system disk into GPT disk, GPT disk also including GPT system disk to MBR disk, dynamic disk to basic, and even FAT file system to NTFS without data loss

      Repair RAID-5 Volume
      Repair RAID-5 volume quickly to keep all data safe and accessible for better Windows PC or Server performance

      SSD 4K Alignment
      Make sure all partitions on SSD are correctly realigned to gain perfect SSD performance and speed up your PC or server

      Cleanup and Optimization
      Clean up junk files and large files that have occupied much disk space, and optimize system disk to run PC / server faster

      Support Command Line
      Manage your disks or partitions directly through input commands. Just set up command lines to partition your hard drive

      Create WinPE Bootable Disk
      EaseUS partition software easily creates WinPE bootable disk to rescue Windows system and get it started again fast when system fails

      Support Windows Storage Spaces
      EaseUS disk management software for Windows easily manages virtual disks created from free space in a storage pool

      What's new:
      Intelligent partition adjustment
      New disk operation guide
      Improved allocation of free space

      Operating System:
      - Windows Server 2016
      - Windows Server 2012 R2
      - Windows Server 2012
      - Windows Home Server 2011
      - Windows Server 2008 R2
      - Windows Server 2008
      - Windows Server 2003
      - Windows Server 2003 R2
      - Windows Small Business Server 2011
      - Windows Small Business Server 2008
      - Windows Small Business Server 2003
      - Windows 10/8.1/8/7/Vista/XP

      HOMEPAGE
      https://www.easeus.com
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      http://nitroflare.com/view/922E955665FE72A/ie64z.EaseUS.Partition.Master.15.8.WinPE.iso



      https://rapidgator.net/file/5f403537a193828f4303819cce2406e6/ie64z.EaseUS.Partition.Master.15.8.WinPE.iso


    • By qxqx
      Master Packager Pro 22.3.8241

      Master Packager Pro 22.3.8241
      Master Packager, sıfırdan MSI ve MST dosyaları oluşturmanıza veya Microsoft Windows yükleyicilerini değiştirmenize olanak tanır. Master Packager hızlıdır, araçta "yanıt vermiyor" metnini asla görmezsiniz. Büyük MSI'ları değiştirmek basittir ve aynı şey yeniden paketleme için de geçerlidir. Kaliteyi artırmak, adlandırmayı standartlaştırmak, ICE doğrulaması ve dosya kaydı eşleme .dll/.exe için Master Packager'ı kullanmak, bu aracın insan hatasını nasıl azaltacağına ve kaliteyi nasıl artıracağına dair sadece birkaç örnektir. Kullanıcı arayüzünün kullanımı kolaydır ve yeni ve deneyimli paketleyicilerin hemen paket oluşturmaya başlamasını sağlar. Şablonların yakalanması, oluşturulması ve uygulanması tamamen otomatik hale getirilebilir ve yeniden paketlemeyi tamamen otomatikleştirmenize olanak tanır. Master Packager, ekibiniz içinde işbirliğini kolaylaştırır, araca bir tıklama ile bir hata kaydedebilir veya bir özellik önerisinde bulunabilirsiniz.
      Ana paketleyicinin özellikleri:
      Tablo Düzenleyici
      Tablo Filtresi
      Ara/Bul ve Değiştir
      Boş tabloları gizleme
      Tablo şemasını düzenleme
      Dışa Aktar/İçe Aktar/Bırak tablosu
      Çevrimiçi MSDN yardımı
      VBS/JScript Düzenleyicisi
      Hex/Ara değer Düzenleyicisi
      Önceden tanımlanmış ve özel tablolar ekleme
      MSI ve MST'deki değişiklikleri izleme ve temizleme
      İkili dosyaları yükleme/kaydetme
      Medya tablosundan kabin(ler)i Oluşturma/Çıkarma
      Tablo ilişkisi izleme
      ICE doğrulaması
      Gelişmiş değer arama
      Değiştirilen hücreleri tablonun en üstüne sıralama
      Doğrulama uyarısı/hata sıralaması tablonun en üstüne
      Temiz...
      22.3.8241, 25.07.2022 sürümündeki yenilikler:
      Bu sürümde, temel olarak iki şeye odaklandık:
      MSIX derleme geliştirmeleri
      Bildirilen sorun düzeltmeleri
      Özellikler
      [MPDEV-877] MSIX - Uygulama girdisi
      eklemeden önce dosyanın var olup olmadığını doğrulayın [MPDEV-872] MSIX - com:SurrogateServer com:Class Id to be large case
      [MPDEV-871] MSIX - uap3:Protocol Name must be little case
      [MPDEV-870] MSIX - Farklı uygulamalar
      için aynı dosya ilişkilerinin işlenmesi [MPDEV-869] MSIX - İmzasız
      derleme seçeneği [MPDEV-861] MSIX - Topluluk sürümünde
      MSIX derleme düğmesi için *Pro metni ekle [MPDEV-853] MSIX - Güncelleştirilmiş MSIX doğrulama kuralları
      [MPDEV-850] MSIX - Dosya ExplorerExplorerClassicDragDropContextMenuHandler
      [MPDEV-776] MSIX - Eski bağlam menülerini
      destekle [MPDEV-899] Ana Paketleyici, Uygulama Kitaplığı ve Kurslar açılış sayfalarını
      görmek için yardım menüsünden bir bağlantı ekleyin [MPDEV-855] Ana Yeniden Paketleyici - MPR sürümü metin kutusu için doğrulamayı yalnızca sayıları destekleyecek şekilde ayarlama
      [MPDEV-883] Ana Yeniden Paketleyici - Dosyaları yönet görünümünden dosya ekleme seçeneği
      Çözülen Sorunlar
      [MPDEV-722] Dosya Uzantısı açılır penceresinde
      ProgID için çift hata mesajı kaldırıldı [MPDEV-898] Sabit SSMS - SQL yönetim araçları - oluştururken
      hata [MPDEV-865] Zaman damgası sunucusunu
      imzalamak için yanlış bağımsız değişkenler düzeltildi [MPDEV-864] MSIX - Belirli derleme sorunu
      düzeltildi [MPDEV-852] MSIX - Sabit eksik URL protokolü

      [MPDEV-879] MSIX - Sabit sondaki boşluklar geçersiz bildirime neden oluyor
      Anasayfa :
      https://www.masterpackager.com/ Master Packager allows you to create MSI and MST files from scratch or modify Microsoft Windows installers. Master Packager is fast, you will never see the text "not responding" in the tool. Modifying large MSIs is simple and the same goes for repackaging. Using Master Packager to improve quality, standardize naming, ICE validation, and file record mapping .dll/.exe are just a few examples of how this tool will reduce human error and increase quality. The user interface is easy to use and allows new and experienced packagers to start creating packages immediately. The capture, creation, and application of templates can be fully automated, allowing you to fully automate repackaging. Master Packager makes collaboration within your team easy, with a click of the tool you can log an error or make a feature suggestion.
      Features of the master packer:
      Table Editor
      Table Filter
      Search/Find and Replace
      Hide empty tables
      Edit table schema
      Export/Import/Drop table
      Online MSDN help
      VBS/JScript Editor
      Hex/Dec value Editor
      Add predefined and custom tables
      Tracking and cleaning changes in MSI and MST
      Load/Save binaries
      Build/Extract cab(s) from Media table
      Table relationship tracing
      ICE validation
      Advanced value lookup
      Sort modified cells to the top of the table
      Validation warning/error sorting to the top of the table
      Clean...
      What's new in version 22.3.8241, 25/07/2022:
      In this release, we focused mainly on two things:
      MSIX build improvements
      Reported issue fixes
      Features
      [MPDEV-877] MSIX - Verify if the file exists before adding application entry
      [MPDEV-872] MSIX - com:SurrogateServer com:Class Id to be uppercase
      [MPDEV-871] MSIX - uap3:Protocol Name needs to be lowercase
      [MPDEV-870] MSIX - Handling of same file associations for different applications
      [MPDEV-869] MSIX - Option to build without signature
      [MPDEV-861] MSIX - Add *Pro text for MSIX build button in the community version
      [MPDEV-853] MSIX - Updated MSIX validation rules
      [MPDEV-850] MSIX - Handling fileExplorerClassicDragDropContextMenuHandler
      [MPDEV-776] MSIX - Support legacy context menus
      [MPDEV-899] Master Packager add a link from the help menu to see App Library and Courses landing pages
      [MPDEV-855] Master Repackager - Set validation for MPR version textbox to support only numbers
      [MPDEV-883] Master Repackager - Option to add files from manage files view
      Issues Resolved
      [MPDEV-722] Removed double error message for ProgID in File Extension flyout
      [MPDEV-898] Fixed SSMS - SQL management tools - error when building
      [MPDEV-865] Fixed incorrect arguments for signing timestamp server
      [MPDEV-864] MSIX - Fixed specific build issue
      [MPDEV-852] MSIX - Fixed missing URL protocol
      [MPDEV-879] MSIX - Fixed trailing spaces cause invalid manifest
      Master Packager Pro v22.3.8241 TEAM-Full
      EXE - ORİGİNAL
      CRC32: 1E66EBD6
      MD5: 319C710A9D330C03A3F94D07505D7DA4
      SHA-1: AF965036C04313B969774DF4A39D7962F6263DB2
      Master Packager Pro v22.3.8241 TEAM-Full
      Master Packager Pro v22.3.8241 TEAM-Full.exe (10.38 MB)
       
       
    • By artae
      GiliSoft Image Watermark Master 9.2.0 Portable | 23.1 Mb
      Ever wanted to remove something from a photo? Now you can. Image Watermark Master can make objects disappear as if they were never there. Make fun pictures, remove unwanted people, remove unsightly pimples, clean up the perfect shot.
      Image Watermark Master quickly deletes unwanted objects such as logo, text, data stamp, watermark, acnes, people... and instantly fix the images automatically as if they were never there. Get the magical images done in seconds-to-minutes instead of minutes-to-hours. People all over the world use Image Watermark Master every day to beautify their photos. It targets to be a simple yet effective photo healing app for all users.

      Operating System:Windows 2000/2003/XP/Vista/7/8/10/11 (32 bits &64 bits)
      Home Page-http://www.gilisoft.com/
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/E8E1B59E78C59C9/jtm6m.GiliSoft.Image.Watermark.Master.9.2.0.Portable.rar



      https://rapidgator.net/file/fe9dddf8a470a48b33db0b5c5f05dcc1/jtm6m.GiliSoft.Image.Watermark.Master.9.2.0.Portable.rar


    • By artae
      GiliSoft Image Watermark Master 9.2.0 | 19.7 Mb
      Ever wanted to remove something from a photo? Now you can. Image Watermark Master can make objects disappear as if they were never there. Make fun pictures, remove unwanted people, remove unsightly pimples, clean up the perfect shot.
      Image Watermark Master quickly deletes unwanted objects such as logo, text, data stamp, watermark, acnes, people... and instantly fix the images automatically as if they were never there. Get the magical images done in seconds-to-minutes instead of minutes-to-hours. People all over the world use Image Watermark Master every day to beautify their photos. It targets to be a simple yet effective photo healing app for all users.

      Operating System:Windows 2000/2003/XP/Vista/7/8/10 (32 bits &64 bits)
      Home Page-http://www.gilisoft.com/
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/7B4F2ABF591FECF/oeg8e.GiliSoft.Image.Watermark.Master.9.2.0.rar



      https://rapidgator.net/file/075ddb62ff406fe50533d8b641bd7086/oeg8e.GiliSoft.Image.Watermark.Master.9.2.0.rar


    • By artae
      Language: Multilingual | File size: 127 MB

      Master of Typing was created for those who want to learn touch typing.

      A lot of modern people almost live sitting at the computer. That's why fast typing is very important now. Touch typing is a method of typing using all your ten fingers without watching the keyboard. Fast typing not only allows you to save but also reduces switching of attention.
      Features
      - two modes: learning and test
      - study touch typing
      - increase your efficiency
      - colorful graphics
      - easy to use
      Master of Typing - learn to type fast and effective and save your . This app will help you to concentrate better and not to digress while working at the computer.
      Top In-App Purchases: Full Pack + No Ads
      Supported Operation Systems
      macOS 10.10 or later
      DOWNLOAD
      (Buy premium account for maximum speed and resuming ability)


      https://nitroflare.com/view/B2AA3E1EAAC38DA/929rc.Master.of.Typing.3..Practice.3.13.1.macOS.rar



      https://rapidgator.net/file/88fbc27fed1a09431b882195e9a080d4/929rc.Master.of.Typing.3..Practice.3.13.1.macOS.rar


  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...