About

SubSonic is a .net open source project developed by Rob Conery and a core team of developers including Eric Kemp, Scott Watermasysk, Jon Galloway, Phil Haack, and Gavin Joyce. The current stable release is version 2.0.3. Nightly builds are available in our SVN respository.

Tags

QuickTable

The QuickTable allows you to quickly expose data in a sensible way. It features server-side paging, sorting, and a nice look and feel.

The QuickTable gets data from a table or view and displays it without the ViewState monster of DataGrid or GridView. This is meant just to quickly show some data in a tabular format if you don't need all the other stuff from DGs and GVs.
It also allows sorting straight away, and paging too: Server Side Paging. This guy is ideal for large tables.


You can show only the columns you want by defining a column list:
ColumnList="ProductID, ProductName"


You can change the header by adding a colon:
ColumnList="ProductID:ID, ProductName:Name"


You can link to other pages:
LinkToPage="ThisOtherPage.aspx". This will put a link on the first column using the primary key, and the querystring value of "id": "thisotherpage.aspx?id=1"


You can use other columns as links:
LinkOnColumn="ProductName"

You can override all of the elements (Table, Pagers, Alternating cells, Regular Cells, etc) with your own CSS. We've tried to make it look pretty for you though:

#1 dtackett on 3.15.2008 at 7:11 PM

Great bit of work here, using it extensively. I have a request.

Could you add the ability to specify a key field for the LinkToPage even when a using this tool on a table w/o a key? (or in my case, I have a couple views that I use QuickTable to display)

I have already modified my version of SubSonic to do this (simple addition to make), but would like to not have to update that code with each release of subSonic.

Again, great work guys! Thanks for your efforts in producing and maintaining this library...

Subscribe