c# - Change rank of records in table -


my table consist 2 fields; code (pk), , rank

code  rank       1   b     2   c     3   d     4 

now want reorder rows in own way. have listbox in application listed codes. when move up, or down item in listbox want save new positions in table. best logic that? help?

if possible create 3rd column in table called listorder stored reorder database when move them or down.


Comments

Popular posts from this blog

c# - How to get the current UAC mode -

postgresql - Lazarus + Postgres: incomplete startup packet -

javascript - Ajax jqXHR.status==0 fix error -