473,748 Members | 2,300 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Design question regarding use of Gridview

Hi,

I am designing a ASP.NET 2.0 front end for an activity based costing model
and am interested in getting some general guidance on what design route to
take. I can work out the specifics but need to make sure I am going down the
right track. In particular I am unsure whether a gridview will do the job
required.

Quick intro of the activity based costing model: it splits costs first
across activities then across products, e.g.:
$1,000,000 * 40% for Brokerage Activity = $400,000
$400,000 * 20% for Fixed Income Product = $80,000

So $80,000 of the $1,000,000 gets allocated to Brokerage, Fixed Income.

The data is simply sets of percentages adding up to 100%: a list of
activities adding up to 100% and then a list of products FOR EACH ACTIVITY
adding up to 100% each. I have one table for activity splits and one for
product splits.

The front end for a particular cost area would need to look something like
the layout below:

Step 1 – Activity

Activity
1 4 5
8 13 14 Total
Ratio 0.4 0.1 0.1
0.2 0.1 0.1 1.0

Step 2 – Product

Activity
ProductID Product Name 1 4 5 8
13 14
1 Product 1 Name 0.5 0.6
5 Product 5 Name 0.1 1.0
0.9
6 Product 6 Name 0.6
0.1
17 Product 17 Name 0.1 0.4 0.2
22 Product 22 Name 0.3
0.8
39 Product 39 Name 0.2
0.2
Total 1.0 1.0 1.0
1.0 1.0 1.0

The activities in the top grid would match the activities in the bottom grid.

Key elements here are that:
1) The list of activities is dynamic based on the selected cost area. Out
of 40 activities only a few might have values recorded for that cost area.
Products are dynamic too but not the same issue when product is on the rows
rather than the columns.
2) ALL adjustments need to be made to these grids before the adjustments are
loaded to the database; when this load attempt does occur they should only
upload IF the values all add to 100%.
3) Changes to the database would need to be inserts rather than updates (so
no overwrites).
4) Need to display the activity names on the column headers rather than
their Ids but need to have the Ids for communication with the database.

Thoughts:
1) I’ll either need to use a dynamic template (which I’m not sure how to do
yet) or I’ll have to include all activities and then programmaticall y hide
columns that are full of nulls. Not sure which is the better bet, the second
seems like a faster solution.

2) How can I have users editing ALL values in the 2nd grid at once? (with a
save button that saves all the values at once) Essentially I need the grid
to treat all values in the grid as a record rather than treating each row as
a record. Can a gridview do this or do I need to create a custom control? I
assume also I’ll need to use an objectdatasourc e rather than a sqldatasource?
3) Not sure how to get the edit mode of a gridview to handle an insert
rather than an update.

Appreciate any thoughts on the direction I should take.

TIA,

Rob
Feb 6 '07 #1
0 1177

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

Similar topics

6
2116
by: rodchar | last post by:
Hey all, I'm trying to understand Master/Detail concepts in VB.NET. If I do a data adapter fill for both customer and orders from Northwind where should that dataset live? What client is responsible for instantiating the orders class? Would it be the ui layer or the master class in the business layer? thanks,
1
1746
by: Mark Olbert | last post by:
Has anyone else noticed that the design-time support for databinding in custom controls in ASPNET2 sucks? At least for GridViews? So far I've spent going on two days trying to get the following simple statements to actually generate something at design-time: gridView = new GridView(); gridView.AutoGenerateColumns = true; gridView.DataSource = ; gridView.DataBind(); I have tried everything I could think of, or read about in four books...
1
3884
by: =?Utf-8?B?UGF0cmljayBG?= | last post by:
I have a gridview on the page that i want to dynamically populate with radiobuttons, so i went out on the net and found something that works perfectly, it created radionuttons and the postback with the works. My problem is that i want to send 2 columns to the gridview instead of 1, but i cant figure out how to add the second column to the gridview. <asp:GridView ID="GridView1" AutoGenerateColumns="false" runat="server" ShowHeader="false">...
3
1657
by: btreddy | last post by:
Hiii experts , I've received one critical requirement from my customer this morning. I've a gridview,in one of my webpage, which displays all the prticipants who are participating in a perticular activity with an unique id.Now the requirment is i need to add one button/linkbutton up on ckicking tht i've to dispaly some of the coloums of the gridview in edit mode..in a seperate control.(like in another gridview) and update the...
0
8991
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8831
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9552
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8245
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6796
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6076
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
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 we have to send another system
2
2787
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.