Solved

Gridview vs Formview

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

MS Dynamics Made Instantly Simpler

Make Your Microsoft Dynamics Investment Count  & Drastically Decrease Training Time by Providing Intuitive Step-By-Step WalkThru Tutorials.

Question has a verified solution.

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

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 …
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…
In this video, viewers are given an introduction to using the Windows 10 Snipping Tool, how to quickly locate it when it's needed and also how make it always available with a single click of a mouse button, by pinning it to the Desktop Task Bar. Int…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…

707 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