Please start any new threads on our new site at https://forums.sqlteam.com. We've got lots of great SQL Server experts to answer whatever question you can come up with.

 All Forums
 Development Tools
 ASP.NET
 How should i implement a display order in datagrid

Author  Topic 

karenros
Starting Member

37 Posts

Posted - 2007-08-15 : 13:06:10
Hi,

I have created a ASP.net website and i have a page called Investment choices where the user can either type in the data in a text box or there they can select them from a grid view(called Funds). The Typed data or the selected data goes in to another datagrid(called plans). and i want to implement a display order.

right now when the user adds 6 numbers using the text box and since i seperate them using commas. In Plans datagrid i get the numbers from 1-6. then after words if the user selects the from the Funds gridview it just its adds a number 1.



So how can i have the display order sequentially so if the user types 6 no's it should be 1- 6 and if he selects 2 funds from the gridview it should be 7 and 8. I have a field in the database which is called display order which is a integer. so do u think it makes sense as making that field as an identity field or how should i deal with it.

Any ideas will be appreciated.

Regards,

Karen

ashley.sql
Constraint Violating Yak Guru

299 Posts

Posted - 2007-08-15 : 13:45:57
you need to post table structure and data and what you are trying to pull more precisely.


Ashley Rhodes
Go to Top of Page

karenros
Starting Member

37 Posts

Posted - 2007-08-15 : 18:02:27
I am trying to pull

Cusip varchar(9)
DisplayOrder int identity
Go to Top of Page
   

- Advertisement -