Oct 27, 2010, 4:47 PM
[CLOSED] How to step through data in a data store
I'm creating a store in markup and binding data in code behind. What is the easiest way to step through this data row by row in code behind or can it only be done in javascript? Here is my sample code:
<ext:Store ID="StoreIssuesPrint" runat="server">
<Reader>
<ext:ArrayReader>
<Fields>
<ext:RecordField Name="id" />
<ext:RecordField Name="issuename" />
<ext:RecordField Name="issueyear" />
<ext:RecordField Name="issueset" />
<ext:RecordField Name="issuedate" Type="Date" />
</Fields>
</ext:ArrayReader>
</Reader>
</ext:Store>
Protected Sub Page_Load(ByVal sender As Object, ByVal e As System.EventArgs) Handles Me.Load
StoreIssuesPrint.DataSource = New Object() {New Object() {1, "Jan", 2010, 1, "1/1/2010"}, _
New Object() {2, "Feb", 2010, 1, "2/1/2010"}, _
New Object() {3, "Mar", 2010, 1, "3/1/2010"}, _
New Object() {4, "Apr", 2010, 1, "4/1/2010"}, _
New Object() {5, "May", 2010, 1, "5/1/2010"}, _
New Object() {6, "Jun", 2010, 1, "6/1/2010"}, _
New Object() {7, "Jul", 2010, 1, "7/1/2010"}, _
New Object() {8, "Aug", 2010, 1, "8/1/2010"}, _
New Object() {9, "Sep", 2010, 1, "9/1/2010"}, _
New Object() {10, "Oct", 2010, 1, "10/1/2010"}, _
New Object() {11, "Nov", 2010, 1, "11/1/2010"}, _
New Object() {12, "Dec", 2010, 1, "12/1/2010"}, _
New Object() {13, "Q1", 2010, 3, "1/1/2010"}, _
New Object() {14, "Q2", 2010, 3, "4/1/2010"}, _
New Object() {15, "Q3", 2010, 3, "7/1/2010"}, _
New Object() {16, "Q4", 2010, 3, "10/1/2010"}, _
New Object() {17, "Annual", 2010, 5, "1/1/2010"}}
StoreIssuesPrint.DataBind()
SetupPrintAdIssues()
End Sub
Public Sub SetupPrintAdsIssues()
'Step through StoreIssuesPrint
For Each row in StoreIssuesPrint ????
?????How do I access each row and column of data
Next
End Sub
Thank you for any pointers you can provide.
Last edited by Daniil; Oct 29, 2010 at 3:05 PM.
Reason: [CLOSED]