473,379 Members | 1,167 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,379 software developers and data experts.

Your opinon please

Hi,

I am writing a shop front for selling goods and want to show the items
in a datagrid/gridview where the headertext is the name, description
and then a variety of prices based on the sizes e.g. Large, Medium,
Small

Name | Description | Large | Medium | Small
=======================================
Shoes | These are nice shoes | 3.20 | 4.20 | 4.50
Obviously this would normally be easy, but I want the different size
text e.g. Large, Medium, Small to come out of the database because
different product categories have different size names.

I have got the database structure sorted but could do with some advice
on the above.

Cheers!

Aug 16 '07 #1
5 1070
what do you actually want to know?

"bungle" <bu****@wizardbuy.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
Hi,

I am writing a shop front for selling goods and want to show the items
in a datagrid/gridview where the headertext is the name, description
and then a variety of prices based on the sizes e.g. Large, Medium,
Small

Name | Description | Large | Medium | Small
=======================================
Shoes | These are nice shoes | 3.20 | 4.20 | 4.50
Obviously this would normally be easy, but I want the different size
text e.g. Large, Medium, Small to come out of the database because
different product categories have different size names.

I have got the database structure sorted but could do with some advice
on the above.

Cheers!

Aug 16 '07 #2
Bungle,

I think you have better chances posting this question in a database
group/forum (as opposed to a C# newsgroup).

As for your question, you can keep a size index (S = 1, M = 2, L = 3)
in the product table, along with a category for the product. When
selecting the products you could JOIN with a table that keeps the size
names, as uniquely determined by a pair of <size index; product
category>.

For example, that table would have records:

<size index = 1, product category = 1; name = 'Small'>
<size index = 2, product category = 1; name = 'Medium'>
<size index = 3, product category = 1; name = 'Large'>
<size index = 1, product category = 2; name = 'Normal'>
<size index = 2, product category = 2; name = 'Supersized'>
<size index = 3, product category = 2; name = 'King size'>
etc

Aug 16 '07 #3
I think he wants to know how he can change the column header text when
retrieving the datagrid.

Couldn't you retrieve the header text separately then dynamically change
what you need to change?

Brad

ThunderMusic wrote:
what do you actually want to know?

"bungle" <bu****@wizardbuy.comwrote in message
news:11**********************@w3g2000hsg.googlegro ups.com...
>Hi,

I am writing a shop front for selling goods and want to show the items
in a datagrid/gridview where the headertext is the name, description
and then a variety of prices based on the sizes e.g. Large, Medium,
Small

Name | Description | Large | Medium | Small
=======================================
Shoes | These are nice shoes | 3.20 | 4.20 | 4.50
Obviously this would normally be easy, but I want the different size
text e.g. Large, Medium, Small to come out of the database because
different product categories have different size names.

I have got the database structure sorted but could do with some advice
on the above.

Cheers!

Aug 16 '07 #4
Do you mean to DB architecture or to UI/BL structure bound to DB ?
--
Sincerely
Yaron Karni
http://dotnetbible.blogspot.com/
"bungle" wrote:
Hi,

I am writing a shop front for selling goods and want to show the items
in a datagrid/gridview where the headertext is the name, description
and then a variety of prices based on the sizes e.g. Large, Medium,
Small

Name | Description | Large | Medium | Small
=======================================
Shoes | These are nice shoes | 3.20 | 4.20 | 4.50
Obviously this would normally be easy, but I want the different size
text e.g. Large, Medium, Small to come out of the database because
different product categories have different size names.

I have got the database structure sorted but could do with some advice
on the above.

Cheers!

Aug 17 '07 #5
Pls expline yourself ? do you ask on data base strcuture architecture or UI
binded to the DB ?
--
Sincerely
Yaron Karni
http://dotnetbible.blogspot.com/
"bungle" wrote:
Hi,

I am writing a shop front for selling goods and want to show the items
in a datagrid/gridview where the headertext is the name, description
and then a variety of prices based on the sizes e.g. Large, Medium,
Small

Name | Description | Large | Medium | Small
=======================================
Shoes | These are nice shoes | 3.20 | 4.20 | 4.50
Obviously this would normally be easy, but I want the different size
text e.g. Large, Medium, Small to come out of the database because
different product categories have different size names.

I have got the database structure sorted but could do with some advice
on the above.

Cheers!

Aug 17 '07 #6

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

Similar topics

0
by: W3C List Manager | last post by:
This is a response to a message apparently sent from your address to png-group@w3.org: Subject: Trotz Stellenabbau From: python-list@python.org Date: Tue, 17 May 2005 23:26:14 UTC Your...
0
by: THEMBA DODI | last post by:
Dear Sir=2C Complements I am Mr=2E Themba Dodo the General Manager of YUKOS OIL South Africa owned by Mikhail Khodorkovsky =28M=2EK=29 one of the richest men in Russia and owner of the following...
27
by: Chuck Grimsby | last post by:
(Repost, due to lack of submissions...) The Microsoft Access Product Group (the people who build Microsoft Access) want your help! One of the main things we're working on for the near future...
5
by: Rated R1 | last post by:
I wrote this before in the NGs, so I am going to paste the responses that I got and see if someone can please help me. Email me and we can set something up as Id even be willing to pay for your...
11
by: Wolfgang Kaml | last post by:
I am not sure if this is more of an expert question, but I am sure that they are out there. I'd like to setup a general application or bin directory on my Win2003.Net Server that will hold some...
245
by: Vortex Soft | last post by:
http://www.junglecreatures.com/ Try it and tell me what's happenning in the Microsoft Corporation. Notes: VB, C# are CLS compliant
0
by: service | last post by:
This is a multi-part message in MIME format --siNt1NhCoyB3mEPydjXJyOTcg=_X6kQe0H0 Content-Type: text/plain Content-Transfer-Encoding: quoted-printable - This mail is a HTML mail. Not all...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...

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.