Skip to content

Increase row in database

albert albert

Asked Jul 4, 2014, 2:37 AM EDT1 answer
Share
LinkedInX
Hi everybody,
 
in the database I have some number, like: 1, 2, 3, 999,999 - from above to down
 but if you want to sort up, then if 999 is above the last number not 999 then number has to be number + 1, so in this case 3 became 4, but if you have 4 it will be 5
 do you have maybe something for it
Code
 if (medicijn.Volgorde == 999)
            {
             //medicijn.Volgorde = ( 999 - medicijn.Volgorde)  + 1;
                medicijn.Volgorde = medicijn.Volgorde;
            }
 
Thank you 

1 Answer

Know the answer? Post it. Somebody with the same question will find it here.

  • Vithal Wadje
    0
    That's not sure but you can use Replace method
    0