Solved

Gridview vs Formview

Posted on 2007-03-21
3
800 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 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

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Recently while returning home from work my wife (another .NET developer) was murmuring something. On further poking she said that she has been assigned a task where she has to serialize and deserialize objects and she is afraid of serialization. Wha…
Real-time is more about the business, not the technology. In day-to-day life, to make real-time decisions like buying or investing, business needs the latest information(e.g. Gold Rate/Stock Rate). Unlike traditional days, you need not wait for a fe…
I've attached the XLSM Excel spreadsheet I used in the video and also text files containing the macros used below. https://filedb.experts-exchange.com/incoming/2017/03_w12/1151775/Permutations.txt https://filedb.experts-exchange.com/incoming/201…

730 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