Solved

Gridview vs Formview

Posted on 2007-03-21
3
793 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
Comment Utility
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
Comment Utility
Awesome thats exactly what I wanted! Thank you!
0
 
LVL 5

Expert Comment

by:Atropa
Comment Utility
Any time my man...a
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

IP addresses can be stored in a database in any of several ways.  These ways may vary based on the volume of the data.  I was dealing with quite a large amount of data for user authentication purpose, and needed a way to minimize the storage.   …
For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…
This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're looking for how to monitor bandwidth using netflow or packet s…

772 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

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now