Txugo
Txugo

Reputation: 5078

To build, or not to build a kind of Gridview control from scrach?

I want to show some results in a GridView kind of way. But for each page I want to show 3 "inner Repeaters" showing data from 1-10,11 20 and 21-30 respectively. You can see this in the folowing image.

alt text http://img196.imageshack.us/img196/1285/examplesv.jpg

My question is, is this easier to buid with only one gridView, and several Item Templates, OR should I buid a new user control from strach?

Upvotes: 1

Views: 99

Answers (3)

Mark Nold
Mark Nold

Reputation: 5698

I'd have a close look at ExtJS's Grid. It's impressive looking and has a lot of features you need. The JS file generated may be a bit large though so maybe build your own if you're putting this on the internets.

Upvotes: 0

ScottE
ScottE

Reputation: 21630

Do you need all the functionality of a gridview, or are you just rendering and paging data? If not, then perhaps the Gridview is not the appropriate control to build from.

Also, be sure to look into the new ListView and datapager controls.

http://www.west-wind.com/WebLog/posts/127340.aspx

Upvotes: 1

MusiGenesis
MusiGenesis

Reputation: 75376

I'd recommend building your own user control from scratch for this. Even when used for its intended purpose (displaying table-based data), working with the GridView is like having a root canal.

In general, when it comes to non-standard UI elements (like what you're doing), you will probably end up spending much more time trying to hammer an existing control into the shape you need than you would just writing your own from the ground up.

Upvotes: 4

Related Questions