Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/karenpayneoregon/windowsformsmoveitemsupdown
Reordering rows in various windows form controls using .NET Framework .NET Core
https://github.com/karenpayneoregon/windowsformsmoveitemsupdown
checkedlistbox csharp datagridview listbox listview netcore7 windows-forms
Last synced: 28 days ago
JSON representation
Reordering rows in various windows form controls using .NET Framework .NET Core
- Host: GitHub
- URL: https://github.com/karenpayneoregon/windowsformsmoveitemsupdown
- Owner: karenpayneoregon
- Created: 2018-06-30T21:44:13.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2024-06-07T14:18:28.000Z (7 months ago)
- Last Synced: 2024-06-07T15:49:30.896Z (7 months ago)
- Topics: checkedlistbox, csharp, datagridview, listbox, listview, netcore7, windows-forms
- Language: C#
- Homepage: https://dev.to/karenpayneoregon/windows-form-move-items-updown-in-listview-and-more-5gp7
- Size: 2.42 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: Readme.md
Awesome Lists containing this project
README
## C# Move rows up/down DataGridview and other controls
This repostory contains code to show how to move rows up and down using buttons on common Windows forms controls and remember their positions in a SQL-Server database table.
Source code for [TechNet article](https://social.technet.microsoft.com/wiki/contents/articles/51662.c-datagridview-listbox-checklistbox-listview-move-items-updown.aspx) and a more [current article](https://dev.to/karenpayneoregon/windows-form-move-items-updown-in-listview-and-more-5gp7) as TechNet is going away.For full documentation see [article.md](article.md)
![Move List View](assets/MoveListView.gif)
11/2023 Added extension methods to move rows up/down with a list.
> **Note**
> The original source code was done in .NET Framework 4.8, 01/2023 added several mirror image project in .NET Core 7 using Visual Studio 2022.### Requires
> **Note**
> There are two paths, .NET Framework 4.8 and .NET Core 8 which means, if the reader does not have VS2022 and .NET Core 8 either delete those projects or upgrade.- Microsoft Visual Studio 2017 or higher - see note above
- Microsoft SQL-Server 2012 or higher## Screen shots
![img](assets/figure1.png)
![img](assets/figure2.png)
![img](assets/figure3.png)
![img](assets/figure4.png)
![img](assets/figure5.png)
![img](assets/figure6.png)