S
Steve
Hi-
I need to make an interface to edit Technical Data records. Table looks
like this:
Tbl_Tech_Specs
[ TSID(pk) ] [ SpecName ] [ SpecValue ]
So if there were 2 records;
2 "Voltage" "5v"
8 "Width" "11 in."
I would like the user to be able to swap the values of 8 w/ 2.
There are no other criteria for how the records are orderd, nothing logical
though. i could try to place some sort of "Order" field, but that seems
hard to manage as I would want them to be unique.
Instead I was thinking of "move up" and "move down" links that would swap
the values.
But in typing this I realized I'm not sure that I would know how to setup
the DataGrid binding to have each item also have the previous DataItems TSID
(required if I'm going to swap them)
argh... how can this be done? Is there an ADO.net class somewhere that can
handle this? Have any of you done this? If so, how did you solve it?
Thanks-
Steve
I need to make an interface to edit Technical Data records. Table looks
like this:
Tbl_Tech_Specs
[ TSID(pk) ] [ SpecName ] [ SpecValue ]
So if there were 2 records;
2 "Voltage" "5v"
8 "Width" "11 in."
I would like the user to be able to swap the values of 8 w/ 2.
There are no other criteria for how the records are orderd, nothing logical
though. i could try to place some sort of "Order" field, but that seems
hard to manage as I would want them to be unique.
Instead I was thinking of "move up" and "move down" links that would swap
the values.
But in typing this I realized I'm not sure that I would know how to setup
the DataGrid binding to have each item also have the previous DataItems TSID
(required if I'm going to swap them)
argh... how can this be done? Is there an ADO.net class somewhere that can
handle this? Have any of you done this? If so, how did you solve it?
Thanks-
Steve