Skip to content

karenpayneoregon/WindowsFormsMoveItemsUpDown

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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 and a more current article as TechNet is going away.

For full documentation see article.md

Move List View

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


img


img


img


img


img