Here is the code:
Code: Select all
var allPaymentsObjects = FileUploadSummaryRepository.Instance.UploadSummary.PaymentTabs.AllPayments;
//This returns a collection of rows which I will iterate through...
var dataRows = allPaymentsObjects.GridData.Self.FindChildren<TrTag>();
foreach (var dataRow in dataRows)
{
FileUploadSummaryRepository.Instance.LineItemNumber = counter.ToString();
var rowData = dataRow.FindChildren<TdTag>()
var dataRows = allPaymentsObjects.GridData.Self.FindChildren<TrTag>()
Even though it should already contain all the rows. Somehow it lost the row information. Am I missing something here? I can't just keep getting the dataRows over and over because it will change my iteration (well I could do it in another way, but the above is ideal). Thanks!