?
Solved

Gridview vs Formview

Posted on 2007-03-21
3
Medium Priority
?
807 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
3 Comments
 
LVL 5

Accepted Solution

by:
Atropa earned 2000 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

Veeam Disaster Recovery in Microsoft Azure

Veeam PN for Microsoft Azure is a FREE solution designed to simplify and automate the setup of a DR site in Microsoft Azure using lightweight software-defined networking. It reduces the complexity of VPN deployments and is designed for businesses of ALL sizes.

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 …
Monitoring a network: how to monitor network services and why? Michael Kulchisky, MCSE, MCSA, MCP, VTSP, VSP, CCSP outlines the philosophy behind service monitoring and why a handshake validation is critical in network monitoring. Software utilized …
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
Suggested Courses

762 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