Solved

Gridview vs Formview

Posted on 2007-03-21
3
797 Views
Last Modified: 2012-06-27
Im developing in Visual Web Developer 05

A req is the user be able to edit, delete and add a new Centers via the application.

So what Ive done is have a master page with some options, including maintain centers.

The user clicks this and goes to the maintain centers page


Now to the .net controls.....the gridview is awesome - I can configure it to edit, delete & it looks good & displays lots of results. But no option to add new.

The form view is cool - edit, delete, new....  but I can only get it to display one centre at a time. And cant configure the colour


So any ideas? I guess my long winded ramblings breaks down to 2 questions.

1. Can I have a new option on a gridview

2.  Can I configure a form view to display more results per page, and look better, more like a gridview

No rush on this one. Many thanks
0
Comment
Question by:bdb12
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Atropa earned 500 total points
ID: 18803831
There is a "New" option on the gridview.  Take a look at this link which tells you how to go about doing that.  It is pretty cool:

http://www.asp.net/learn/dataaccess/tutorial53vb.aspx?tabid=63

I have tried it and it works great.

A form view can only display one record at a time and it can be difficult to configure the colours.  I would stick with the GridView unless you need to display the insert fields from top to bottom rather than left to right.

Until I found the link above, I would create a grid view with a form view under it.  In the form view's item template i would just have the "insert" button.  On the InsertItem template I would have the items displayed from top to bottom.  Then after insert I would refresh the grid view.  This looks great, better than the grid view insert when the fields are so long that you are scrolling right for a mile on the grid view.  good luck...a
0
 

Author Comment

by:bdb12
ID: 18805558
Awesome thats exactly what I wanted! Thank you!
0
 
LVL 5

Expert Comment

by:Atropa
ID: 18808545
Any time my man...a
0

Featured Post

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article describes relatively difficult and non-obvious issues that are likely to arise when creating COM class in Visual Studio and deploying it by professional MSI-authoring tools. It is assumed that the reader is already familiar with the cla…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
This Micro Tutorial will teach you how to censor certain areas of your screen. The example in this video will show a little boy's face being blurred. This will be demonstrated using Adobe Premiere Pro CS6.

831 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question