473,511 Members | 15,581 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Are We Still Supposed to Use GridView?

I'm just starting to get up to speed with ASP.NET. Based on what I've read,
I use the GridView control to display tables of data from a database. And,
using ObjectDataSource, I've found examples of how to implement efficient
paging in the GridView control.

But all my books are for .NET 2.0. Looking around, I see sites like
http://geekswithblogs.net/ranganh/ar...06/117426.aspx that say
"DataPager Server Control which combined with List View can provide a
flexible paging mechanism with full customization support. The built-in
paging mechanism of DataGrid, GridView etc., provide little support for
customization."

To be honest, I have no idea what the DataPager or the ListView controls do.
Does someone who knows tell me what, if any, reason I would have for
switching from GridView and ObjectDataSource to something like DataPager and
ListView?

Thanks!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 24 '08 #1
4 1484
Hello Jonathan,

ListView/DataPager are new ASP.NET 3.5 component which aimed to be used instead
of GridView.
Just new level of abstraction to incorporate the latest .NET 3.5 features
in these controls

---
WBR,
Michael Nemtsev [.NET/C# MVP] :: blog: http://spaces.live.com/laflour

"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo
JWI'm just starting to get up to speed with ASP.NET. Based on what
JWI've read, I use the GridView control to display tables of data from
JWa database. And, using ObjectDataSource, I've found examples of how
JWto implement efficient paging in the GridView control.
JW>
JWBut all my books are for .NET 2.0. Looking around, I see sites like
JWhttp://geekswithblogs.net/ranganh/ar...06/117426.aspx
JWthat say "DataPager Server Control which combined with List View can
JWprovide a flexible paging mechanism with full customization support.
JWThe built-in paging mechanism of DataGrid, GridView etc., provide
JWlittle support for customization."
JW>
JWTo be honest, I have no idea what the DataPager or the ListView
JWcontrols do. Does someone who knows tell me what, if any, reason I
JWwould have for switching from GridView and ObjectDataSource to
JWsomething like DataPager and ListView?
JW>
JWThanks!
JW>
Feb 24 '08 #2
The ListView control allows to define the whole markup that is rendered
making it extremely flexible and customizable. So each time you have to
render a grid like control just pick the one that best fit your needs,
either the GridView if it fit your needs or the ListView is you need to take
full control on the rendered markup.

Also you(ll find an overview for each control in the doc :
From http://msdn2.microsoft.com/en-us/library/bb398790.aspx

--
Patrice

"Jonathan Wood" <jw***@softcircuits.coma écrit dans le message de news:
uL**************@TK2MSFTNGP06.phx.gbl...
I'm just starting to get up to speed with ASP.NET. Based on what I've
read, I use the GridView control to display tables of data from a
database. And, using ObjectDataSource, I've found examples of how to
implement efficient paging in the GridView control.

But all my books are for .NET 2.0. Looking around, I see sites like
http://geekswithblogs.net/ranganh/ar...06/117426.aspx that say
"DataPager Server Control which combined with List View can provide a
flexible paging mechanism with full customization support. The built-in
paging mechanism of DataGrid, GridView etc., provide little support for
customization."

To be honest, I have no idea what the DataPager or the ListView controls
do. Does someone who knows tell me what, if any, reason I would have for
switching from GridView and ObjectDataSource to something like DataPager
and ListView?

Thanks!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 25 '08 #3
Thanks for the info.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Patrice" <http://www.chez.com/scribe/wrote in message
news:u1*************@TK2MSFTNGP02.phx.gbl...
The ListView control allows to define the whole markup that is rendered
making it extremely flexible and customizable. So each time you have to
render a grid like control just pick the one that best fit your needs,
either the GridView if it fit your needs or the ListView is you need to
take full control on the rendered markup.

Also you(ll find an overview for each control in the doc :
From http://msdn2.microsoft.com/en-us/library/bb398790.aspx

--
Patrice

"Jonathan Wood" <jw***@softcircuits.coma écrit dans le message de news:
uL**************@TK2MSFTNGP06.phx.gbl...
>I'm just starting to get up to speed with ASP.NET. Based on what I've
read, I use the GridView control to display tables of data from a
database. And, using ObjectDataSource, I've found examples of how to
implement efficient paging in the GridView control.

But all my books are for .NET 2.0. Looking around, I see sites like
http://geekswithblogs.net/ranganh/ar...06/117426.aspx that say
"DataPager Server Control which combined with List View can provide a
flexible paging mechanism with full customization support. The built-in
paging mechanism of DataGrid, GridView etc., provide little support for
customization."

To be honest, I have no idea what the DataPager or the ListView controls
do. Does someone who knows tell me what, if any, reason I would have for
switching from GridView and ObjectDataSource to something like DataPager
and ListView?

Thanks!

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

Feb 25 '08 #4
Right. I'm just trying to get a feel for if I should switch or stick with
GridView.

Thanks.

--
Jonathan Wood
SoftCircuits Programming
http://www.softcircuits.com

"Michael Nemtsev [MVP]" <ne*****@msn.comwrote in message
news:90**************************@msnews.microsoft .com...
Hello Jonathan,

ListView/DataPager are new ASP.NET 3.5 component which aimed to be used
instead of GridView. Just new level of abstraction to incorporate the
latest .NET 3.5 features in these controls

---
WBR, Michael Nemtsev [.NET/C# MVP] :: blog:
http://spaces.live.com/laflour
"The greatest danger for most of us is not that our aim is too high and we
miss it, but that it is too low and we reach it" (c) Michelangelo

JWI'm just starting to get up to speed with ASP.NET. Based on what
JWI've read, I use the GridView control to display tables of data from
JWa database. And, using ObjectDataSource, I've found examples of how
JWto implement efficient paging in the GridView control.
JWJWBut all my books are for .NET 2.0. Looking around, I see sites
like
JWhttp://geekswithblogs.net/ranganh/ar...06/117426.aspx
JWthat say "DataPager Server Control which combined with List View can
JWprovide a flexible paging mechanism with full customization support.
JWThe built-in paging mechanism of DataGrid, GridView etc., provide
JWlittle support for customization."
JWJWTo be honest, I have no idea what the DataPager or the ListView
JWcontrols do. Does someone who knows tell me what, if any, reason I
JWwould have for switching from GridView and ObjectDataSource to
JWsomething like DataPager and ListView?
JWJWThanks!
JW>
Feb 25 '08 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
5659
by: theKirk | last post by:
using Visual Studio 2005 C# ASP.NET I know there has to be a simple way to do this....I want to use C# in a code behind for aspx. Populate a GridView from an xml file Add Fields to the...
6
3022
by: Nalaka | last post by:
Hi, I have a gridView (grid1), which as a templateColumn. In the template column, I have put in a gridView (grid2) and a ObjectDataSource (objectDataSource2). Question is... How to I pass the...
3
13725
by: NateDawg | last post by:
I'm reposting this. I'm kinda in a bind untill i get this figured out, so if anyone has some input it would sure help me out. Ok, I’ve noticed a few gridview problems floating around the forum....
7
14784
by: | last post by:
Hello, Does anyone have an idea on how I can filter the data in the gridview control that was returned by an sql query? I have a gridview that works fine when I populate it with data. Now I...
5
6409
by: sutphinwb | last post by:
Hi - This could be a simple question. When I relate two tables in a datasetet, how do I get that relation to show up in a GridView? The only way I've done it, is to create a separate table in the...
0
1141
by: COHENMARVIN | last post by:
I have a page that has a menu running down the left side. When I load a wide gridview into the page, that gridview doesn't fit to the right of the menu. So it gets moved below the menu. I tried...
6
1968
by: =?Utf-8?B?UGF1bA==?= | last post by:
Hi I have a gridview control with a template column that has a textbox and when the control is bound to the datasource the textbox is filled ok. I then change what is in the textbox in the gridview...
0
4246
by: steve | last post by:
I have been fighting with trying to update a GridView for a while. I don't want to use the "built-in" way to do it because I am using business layer methods for updating and deleteing and I don't...
3
5220
by: Peter | last post by:
I have a GridView which is populated by List<ofObjects> Does anyone have example of how to sort the columns of this GridView? I have found examples without DataSourceControl but these use...
0
7245
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7427
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
1
7085
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
5671
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
4741
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3214
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1577
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
785
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
449
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.