Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Insert Before After row in Grid

Status
Not open for further replies.

jagdeep

IS-IT--Management
Jul 29, 2002
12
IN
Hi

I am working on Creating a grid under ASP.NET 2.0 c# enviornment with the following features.

1) The grid priovides a dropdown having a list of employees. Updates/Deletes/Inserts will be done on the basis of employeeID selected for a row.
2) Some fields are ReadOnly.
3) Ability to click "Insert Before", "Insert After" links on each row. and do inplace inserting to add new rows in the grid. (Not like a popup as provided
by FormView/ Details View). This is to create a ordered list where each employee could be having multiple entries.

S.No. 3 is mandatory feature required on UI.

I have looked into GridView also. Any pointers theoratical/code would be helpful.
 
i have not started coding for this yet.

My main requirement is to provide "Insert Before"/ "Insert After" on each line of grid.

i am just analysing if i can leverage an existing control (GridView/FormView/ Details )/ or create my own control using c#

mahalo
Jacks
 
If you are just analysing whether the GridView is capable of this, then yes it is. You can just add a new empty row to your data source (at the relevant before/after position), rebind the grid and then edit that row.


-------------------------------------------------------

Mark,
[URL unfurl="true"]http://aspnetlibrary.com[/url]
[URL unfurl="true"]http://mdssolutions.co.uk[/url] - Delivering professional ASP.NET solutions
[URL unfurl="true"]http://weblogs.asp.net/marksmith[/url]
 
i want the reverse of this operation, creating a blank row, (Above or below) an existing row in UI, and save it to database

mahalo
Jacks
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top