Rattlesnake
Well-known member
- Joined
- Dec 23, 2003
- Messages
- 47
Hi,
I have ASP.Net 1.1 application.
It contains a form that has a Dataset that contains one table "Orders". It contains the below fields
OrderNumber
OrderDate
OrderSequence
OrderSequence is a sequence number from 1,2,3...........
I display the Orders in a datagrid using Orders dataset as source (Sorted by OrderSequence) .The datagrid contains a Textbox displaying the OrderSequence column.
I am trying to implement a mechanim=sm that will allow the user to change the sequence of the Order to allow him to move the Order up and down the sequence.
When the user changes the OrderSequence , I want to change the OrderSequence in all the Order rows.
For e.g. if the user changes the OrderSequence of a row from "20" to "10" , I want to update the OrderSequence of all rows in the Orders dataset to "OrderSequence + 1" for all those rows that have OrderSequence of 10 or greater.
How can Update multiple records in s Dataset using a sql query ???????????
I have ASP.Net 1.1 application.
It contains a form that has a Dataset that contains one table "Orders". It contains the below fields
OrderNumber
OrderDate
OrderSequence
OrderSequence is a sequence number from 1,2,3...........
I display the Orders in a datagrid using Orders dataset as source (Sorted by OrderSequence) .The datagrid contains a Textbox displaying the OrderSequence column.
I am trying to implement a mechanim=sm that will allow the user to change the sequence of the Order to allow him to move the Order up and down the sequence.
When the user changes the OrderSequence , I want to change the OrderSequence in all the Order rows.
For e.g. if the user changes the OrderSequence of a row from "20" to "10" , I want to update the OrderSequence of all rows in the Orders dataset to "OrderSequence + 1" for all those rows that have OrderSequence of 10 or greater.
How can Update multiple records in s Dataset using a sql query ???????????