{"id":22065815,"url":"https://github.com/karenpayneoregon/datagridviewbuttonasync","last_synced_at":"2026-05-06T07:38:22.600Z","repository":{"id":110840464,"uuid":"228640561","full_name":"karenpayneoregon/DataGridViewButtonAsync","owner":"karenpayneoregon","description":"DataGridView custom button code sample","archived":false,"fork":false,"pushed_at":"2021-10-23T21:44:51.000Z","size":132,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-29T00:30:13.109Z","etag":null,"topics":["charp-code","windows-forms"],"latest_commit_sha":null,"homepage":"","language":"C#","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/karenpayneoregon.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":"2019-12-17T15:00:14.000Z","updated_at":"2024-01-23T01:45:50.000Z","dependencies_parsed_at":"2023-05-02T00:17:34.751Z","dependency_job_id":null,"html_url":"https://github.com/karenpayneoregon/DataGridViewButtonAsync","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FDataGridViewButtonAsync","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FDataGridViewButtonAsync/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FDataGridViewButtonAsync/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/karenpayneoregon%2FDataGridViewButtonAsync/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/karenpayneoregon","download_url":"https://codeload.github.com/karenpayneoregon/DataGridViewButtonAsync/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245144978,"owners_count":20568056,"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":["charp-code","windows-forms"],"created_at":"2024-11-30T19:22:09.236Z","updated_at":"2026-05-06T07:38:22.550Z","avatar_url":"https://github.com/karenpayneoregon.png","language":"C#","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TechNet Wiki article\n[Windows DataGridView with inline edit and remove buttons](https://social.technet.microsoft.com/wiki/contents/articles/51226.windows-datagridview-with-inline-edit-and-remove-buttons.aspx)\n\nThere are several methods to permit editing and removal of records displayed in a Windows DataGridView from inline editing of cells to display a modal window invoked by either a button or by double-clicking the current DataGridView row/cells or a combination of both. An alternate approach is to provide buttons within the DataGridView, one for edit and one for removal of a row. This article will explain how to implement editing and deleting the current row in a DataGridView utilizing a custom DataGridView button column which is set up for displaying the buttons on the current row only rather than displaying the buttons on all rows at once.\n\n![image](assets/dgvButtons.png)\n\n### Asynchronous data reads\nAlthough there is no actual need for reading database tables using asynchronous programming model TAP this code sample does which had been done off-hand to show performing reads without explicitly defining a task but instead utilizing async methods available in the .NET Framework.\n\n### Update 10/2021\n\nAdded stub code for button conext menu\n\nRemove button does not have a menu while the Edit button has a menu with two items, click events with no actions.\n\n![img](assets/ButtonContextMenu.png)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fdatagridviewbuttonasync","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkarenpayneoregon%2Fdatagridviewbuttonasync","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkarenpayneoregon%2Fdatagridviewbuttonasync/lists"}