S
Sparky Arbuckle
The application I'm creating consists of a DataGrid with 3 (at this
point in time) DataLists nested inside of it. One of the columns is for
the the latest version of the product and the other is for revisions to
that produce version. So the database table would look something like
this for any given item with revisions:
ItemNumber - Revision
A - 1
A - 2
B - 1
B - 2
B - 3
C - 1
D - 1
D - 2
D - 3
D - 4
etc - etc..
What I'm trying to figure out is if it is possible to have one column
with the Item Number (i.e. A) and the column next to it each Revision
of the Item (i.e. B1, B2, B3). I know it would probably be easiest to
create a function that gets the max Revision number and loop through it
to create a string.
<aspataList id="dl1" DataSource=<%#
GetItemInfo(Container.DataItem("ItemID")) %> Runat="server">
<HeaderTemplate>TEST</HeaderTemplate>
<ItemTemplate>
<%# Container.DataItem("ItemName") %>
</ItemTemplate>
</aspataList>
This creates each a column that lists all Distinct Items:
A
B
C
D
How would I go about creating a column next to this one that writes A1,
A2, etc.. so that it looks like:
A - A1,A2
B - B1,B2,B3
C - C1
D - D1,D2,D3,D4
Any suggestions? If you are confused and need more information please
ask and I will provide.
point in time) DataLists nested inside of it. One of the columns is for
the the latest version of the product and the other is for revisions to
that produce version. So the database table would look something like
this for any given item with revisions:
ItemNumber - Revision
A - 1
A - 2
B - 1
B - 2
B - 3
C - 1
D - 1
D - 2
D - 3
D - 4
etc - etc..
What I'm trying to figure out is if it is possible to have one column
with the Item Number (i.e. A) and the column next to it each Revision
of the Item (i.e. B1, B2, B3). I know it would probably be easiest to
create a function that gets the max Revision number and loop through it
to create a string.
<aspataList id="dl1" DataSource=<%#
GetItemInfo(Container.DataItem("ItemID")) %> Runat="server">
<HeaderTemplate>TEST</HeaderTemplate>
<ItemTemplate>
<%# Container.DataItem("ItemName") %>
</ItemTemplate>
</aspataList>
This creates each a column that lists all Distinct Items:
A
B
C
D
How would I go about creating a column next to this one that writes A1,
A2, etc.. so that it looks like:
A - A1,A2
B - B1,B2,B3
C - C1
D - D1,D2,D3,D4
Any suggestions? If you are confused and need more information please
ask and I will provide.