Re: Nested Datalists
- From: "Sparky Arbuckle" <twa@xxxxxxxxxxxxxx>
- Date: 24 Aug 2005 14:11:16 -0700
Thanks alot Tom. I am understanding the logic of that tutorial but the
only problem is that my page isn't in C# (I am currently learning
though =] ). What I have so far is:
strSQL = "SELECT Max(Sheet.DCN) AS MaxOfDCN, Max(ADCN.ADCN) AS
MaxOfADCN, " & _
"Sheet.SheetNumber FROM Drawings INNER JOIN (ADCN INNER JOIN "
& _
"Sheet ON ADCN.RecordID = Sheet.RecordID) ON " & _
"Drawings.Drawing = Sheet.Drawing WHERE " & _
"(Sheet.Drawing = '" & x & "') AND " & _
"(Sheet.SheetType = 'CD') GROUP BY " & _
"Sheet.Drawing, Sheet.SheetType, Sheet.SheetNumber;"
This SQL statement returns all the information that I need (Drawing #,
SheetType, Version(DCN), Revisions(ADCN), and SheetNumber). The DCN
(MaxOfDCN) is the most current version of that item and ADCN
(MaxOfADCN) is an integer that represents the number of revisions to
that current version of the item. I have utilized a function including
this SQL string as the DataSource for one of my datalists. The output
looks like:
COLUMN 1 - COLUMN 2 - COLUMN 3
Drawing #(string) - Most Current Item Version(string) - Number(n)
The function returns a dataset and the values from above are populated
in the datalist. What I'm wondering is if I could add a column to this
dataset and programmatically alter the output.
ds.Tables("DataTable").Columns.Add("NewColumn") = strNewString
So let's say that COLUMN 2 = C and COLUMN 3 = 7, I would like to build
a string that looks like: C1,C2,C3,C4,C5,C6,C7
Can anyone get me started as to how to best (most efficiently) go about
doing this?
Much thanks.
.
- Follow-Ups:
- Re: Nested Datalists
- From: tom pester
- Re: Nested Datalists
- References:
- Nested Datalists
- From: Sparky Arbuckle
- Re: Nested Datalists
- From: tom pester
- Nested Datalists
- Prev by Date: Multiline textbox drop the char return when saved to sql
- Next by Date: Re: I have fixed ASP.NET check it out
- Previous by thread: Re: Nested Datalists
- Next by thread: Re: Nested Datalists
- Index(es):
Relevant Pages
|