I Have a datatable in .net. I need to flip the location of two of them. For example, a datatable that the select statement had an order by priority clause. The user wants to up the priority of a single row by selecting it and clicking increase priority, how do i move a row up (AKA flip two rows)
Thanks in advance
Use a
DataViewon this table, sorted by an “priority” column. When you want to increase priority, increase this column, and decrease it on the row above. TheDataViewwill reflect the change on the UI.When you’re done changing the priorities, update the database using a DataAdapter