{"id":21170113,"url":"https://github.com/novikovadaria/usingdataset_wpf","last_synced_at":"2025-03-14T17:24:27.281Z","repository":{"id":203575091,"uuid":"709901484","full_name":"novikovadaria/UsingDataSet_WPF","owner":"novikovadaria","description":"Созданиe DataGrid c помощью DataSet | Creating a WPF DataGrid with DataSet","archived":false,"fork":false,"pushed_at":"2023-10-25T17:34:36.000Z","size":48,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-21T10:50:58.683Z","etag":null,"topics":["datagrid","datagridview","dataset","geekbrains","net-framework","vb","wpf"],"latest_commit_sha":null,"homepage":"","language":"Visual Basic .NET","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/novikovadaria.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-10-25T16:07:51.000Z","updated_at":"2024-01-05T22:23:14.000Z","dependencies_parsed_at":null,"dependency_job_id":"0a361f64-9dd5-43a6-babf-4e073856da11","html_url":"https://github.com/novikovadaria/UsingDataSet_WPF","commit_stats":null,"previous_names":["novikovadaria/usingdataset_wpf"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2FUsingDataSet_WPF","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2FUsingDataSet_WPF/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2FUsingDataSet_WPF/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/novikovadaria%2FUsingDataSet_WPF/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/novikovadaria","download_url":"https://codeload.github.com/novikovadaria/UsingDataSet_WPF/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243616637,"owners_count":20319933,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["datagrid","datagridview","dataset","geekbrains","net-framework","vb","wpf"],"created_at":"2024-11-20T15:56:27.203Z","updated_at":"2025-03-14T17:24:27.275Z","avatar_url":"https://github.com/novikovadaria.png","language":"Visual Basic .NET","funding_links":[],"categories":[],"sub_categories":[],"readme":"# DataSet объединение DataTable\n## Проект представляет собой пример объединения двух таблиц DataTable, используя DataSet. Одна из таблиц является основной, вторая - вложенной.\n\n**Основные шаги:**\n\n1. Объявление DataSet и DataTable.\n2. Создание структуры DataSet и добавление таблиц с именами.\n3. Функция заполнения таблиц (может быть запрос к базе данных или ручное заполнение).\n4. Создание связи между таблицами на основе общего поля.\n5. Назначение источника данных для главного DataGrid. Для вложенного - в XAML.\n\n**В репозитории также представлена картинка с готовым DataGrid и примером XAML.**\n\n**Преимущества использования:**\nИспользование такого рода отображения данных особенно удобно в ситуациях, когда необходимо избежать повторений строк с одинаковой информацией. \nВместо того чтобы дублировать строки с одинаковыми данными, все повторяющиеся строки объединяются в одну, что делает отображение более чистым и удобочитаемым.\n\n**Без вложенного DataGrid:**      \n\n![image](https://github.com/novikovadaria/UsingDataSet_WPF/assets/107907983/8568653f-7fbd-4ee5-8eab-7f63f532a27a)\n\n\n **С вложенным DataGrid:**\n \n ![image](https://github.com/novikovadaria/UsingDataSet_WPF/assets/107907983/4e952aff-9472-42b0-9e78-70c403abc009)\n\n\n\n# DataSet Merging with DataTable\n## This project showcases how to merge two DataTables using DataSet. One table serves as the main table and the other as the nested one.\n\n**Key Steps:**\n\n1. Declare DataSet and DataTable.\n2. Set up the DataSet structure and add tables with names.\n3. A function to populate the tables (can be a database query or manual filling).\n4. Establish a relationship between the tables based on a common field.\n5. Assign data source to the main DataGrid. For the nested one, it's done in XAML.\n\n**The repository also features an image of the completed DataGrid and a XAML example.**\n\n**Advantages of Using This Approach:**\nUtilizing this kind of data representation is especially beneficial when looking to avoid repetitive rows with the same information. \nInstead of duplicating rows with identical data, all repeating rows are merged into one, making the display much cleaner and more readable.\n\n**Without Nested DataGrid:**      \n\n![image](https://github.com/novikovadaria/UsingDataSet_WPF/assets/107907983/8568653f-7fbd-4ee5-8eab-7f63f532a27a)\n\n\n **With Neste DataGrid:**\n \n ![image](https://github.com/novikovadaria/UsingDataSet_WPF/assets/107907983/4e952aff-9472-42b0-9e78-70c403abc009)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovikovadaria%2Fusingdataset_wpf","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnovikovadaria%2Fusingdataset_wpf","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnovikovadaria%2Fusingdataset_wpf/lists"}