HighTechTalks DotNet Forums  

Crosstab-type grid control

ASP.net Web Controls microsoft.public.dotnet.framework.aspnet.webcontrols


Discuss Crosstab-type grid control in the ASP.net Web Controls forum.



Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old   
Craig Buchanan
 
Posts: n/a

Default Crosstab-type grid control - 06-11-2008 , 04:42 PM






I have a collection of records with the following data elements: Year,
Payee, ExpenseType, Amount.

I would like to create a cross-type grid to edit the amounts, where the
payees are listed in rows, and the Year and ExpenseTypes are column headers.
The Year column is above the ExpenseType columns, the ExpenseTypes would
repeat for each Year.

I thought about creating a templated custom control with a
ColumnGroupTemplate and ColumnTemplate in addition to the standard DataGrid
templates (e.g. HeaderTemplate), but it seems like I still need a mechanism
to tell the control which field should be the ColumnGroup, the Column, the
Item and such.

Any thoughts on how to do this in a reusable manner would be appreciated.

Thanks in advance,

Craig Buchanan



Reply With Quote
Reply




Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Powered by vBulletin Version 3.5.4
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.