Hi,
I am having heaps of trouble converting an old report to one based on the new Table control.
On the old report I could create 'column' that incremented a number based on criteria of a DataItem. This used to be run against the detail.ItemDataBinding event. See example below:
Private Sub detail_ItemDataBinding(ByVal sender As Object, ByVal e As System.EventArgs) Handles detail.ItemDataBinding |
Dim detail As Processing.DetailSection = CType(sender, Processing.DetailSection) |
Dim dataItem As DataRowView = CType(detail.DataItem, DataRowView) |
'new project id |
If m_CurrentProjectID <> dataItem("ProjectID") Then |
'reset project total |
If m_CurrentProjectID <> -1 Then IncrementInvoiceNo() |
m_CurrentProjectID = dataItem("ProjectID") |
m_CurrentClientID = dataItem("ClientID") |
' m_totalInvoiceCost += dataItem("TotalAmount") |
ElseIf m_CurrentClientID <> dataItem("ClientID") Then |
'reset client total |
If m_CurrentClientID <> "" Then IncrementInvoiceNo() |
m_CurrentClientID = dataItem("ClientID") |
' m_totalInvoiceCost += dataItem("TotalAmount") |
End If |
m_totalInvoiceCost += dataItem("TotalAmount") |
End Sub |
Now though, I am binding my data against a Prossessing.Table . i.e.
Me.Table1.DataSource = l_dt.DefaultView |
Can I still get to the DataItems using the latest version of Reporting in a similar way to above using the Processing.Table ItemDataBound or ItemDataBinding events?
Cheers,
Damo.