The table cells in myy report is color coded. Say, the BackColor is green if the text in the XRTableCell is "Approved". I have coded a bunch of formatting rules and successfully implemented it.
Now I am writing a test for this function. All I need is to obtain a TableCell's text and its BackColor to confirm if the formatting rule is correctly applied.
I can get the total rows in report.RowCount, and the current row by report.GetCurentRow().
Question 1.
In the debugging, I can see all the column names and their values when I expand report.GetCurrentRow(). But I could not get the value by report.GetCurentRow()[0] or report.GetCurrentRow().MyColumn.
There is a KB ar ticle: https://documentation.devexpress.com/#xtrareports/DevExpressXtraReportsUIXtraReportBase_GetCurrentColumnValuetopic
It won't work because "DataRowView" is not valid in this scope. ???
Question 2:
How can I loop through the rows?
I find no report.Rows() or report.GetAllRows() which return a collection so that I can do rows[i]. And there is no NextRow() method either.
Please help me out. Thanks!
-----------
And there is a FindControl() method. I can return the XRTableCell I want, but there is no row info and returns to me no value.
My version is v13.2.
There is no Rows property in XRTable.
Here in this article: https://documentation.devexpress.com/#XtraReports/DevExpressXtraReportsUIXRTable_Rowstopic
There is Rows in XRTable. So what went wrong?