S
Steve
(this was a late addition to another thread, I posted it fresh as it's own
thread cause it's a different question)
OK, I have a bit of a problem here. I was reading this article here:
http://msdn.microsoft.com/msdnmag/issues/02/11/datapoints/default.aspx
And everything was sounding easy. Then I thought about how I wanted to
DISPLAY my Data VS how it's STORED in teh database.. and that is the tricky
part.
Here is a table breakdown
Tbl_Products
[ ProdId(pk) ] [ PartNum ]
Tbl_Prod_Faqs (may-to-many)
[ ProdId (fk) ] [ FaqId(fk) ]
Tbl_Faq_Main
[ FaqId(pk) ] [ CatId (fk) ] [ Question ] [ Answer ]
Tbl_Faq_Categories
[ CatId(pk) ] [ Category ]
so that seems fine to me.
I want to display it hierarchically like this:
ProductA
FaqCategory1
Faqs[]
FaqCategory2
Faqs[]
ProductB
FaqCategory1
Faqs[]
FaqCategory2
Faqs[]
FaqCategory3
Faqs[]
FaqCategory4
Faqs[]
You get the idea.
So I have a series of nested controls and I need to pass them the
appropriate data source. Using 4 tables linked with DataRelations, I don't
see how I can easily get the FaqCategories for a given product.
what do you suggest? What is the cleanest, nicest way to handle my
situation here?
thread cause it's a different question)
OK, I have a bit of a problem here. I was reading this article here:
http://msdn.microsoft.com/msdnmag/issues/02/11/datapoints/default.aspx
And everything was sounding easy. Then I thought about how I wanted to
DISPLAY my Data VS how it's STORED in teh database.. and that is the tricky
part.
Here is a table breakdown
Tbl_Products
[ ProdId(pk) ] [ PartNum ]
Tbl_Prod_Faqs (may-to-many)
[ ProdId (fk) ] [ FaqId(fk) ]
Tbl_Faq_Main
[ FaqId(pk) ] [ CatId (fk) ] [ Question ] [ Answer ]
Tbl_Faq_Categories
[ CatId(pk) ] [ Category ]
so that seems fine to me.
I want to display it hierarchically like this:
ProductA
FaqCategory1
Faqs[]
FaqCategory2
Faqs[]
ProductB
FaqCategory1
Faqs[]
FaqCategory2
Faqs[]
FaqCategory3
Faqs[]
FaqCategory4
Faqs[]
You get the idea.
So I have a series of nested controls and I need to pass them the
appropriate data source. Using 4 tables linked with DataRelations, I don't
see how I can easily get the FaqCategories for a given product.
what do you suggest? What is the cleanest, nicest way to handle my
situation here?