Welcome! and rules
Joel on Software
Horizontal movable grid
hi, we are looking at enhancing our Bug Tracking software. To explain, we capture the rank (importance) of the bug in a field, let's call it Rank from 1 to N. The problem being is that if there is a new Number 3, there is no way to move the present #3 down and automatically rerank everything else. For Example:
One way to deal with this is to allow bigger numbers for the rank, like in the millions:
i really can't do that. The real question is can i move datarows up and down in a datagrid? Then, i can just base the New Rank off of where it is in the collection.
Assuming you're binding the data grid to an data source, can you change the sequence of the data source? Stupid question, but sequencing the data before it gets to the grid seems like the best option.
I can sequence it before it gets to the datagrid. But, then can i change the order (move up and down) the rows in the datagrid?
You could perform an SQL update thus:
that will work Connor. Thanks!
Fog Creek Home