public void AddDisclosureDataSection(ref DisclosureDataSectionDataSet.DisclosureDataSectionRow row,int disclosureDataSectionID) { ultragridDisclosureData.SuspendLayout(); ultragridDisclosureData.BeginUpdate(); ultragridDisclosureData.SuspendRowSynchronization(); UltraGridRow newItemGridRow = ultragridDisclosureData.DisplayLayout.Bands[0].AddNew(); newItemGridRow.Cells["DisclosureDataSectionID"].Value = row.DisclosureDataSectionID; newItemGridRow.Cells["Description"].Value = row.DisclosureDataSectionName; newItemGridRow.CellAppearance.FontData.Bold = Infragistics.Win.DefaultableBoolean.True; newItemGridRow.Fixed = true; foreach (DisclosureDataSectionDataSet.DisclosureDataSectionDisclosureDataItemRow section2Row in row.GetDisclosureDataSectionDisclosureDataItemRows()) { //band 1 UltraGridRow newItemGridRow1 = newItemGridRow.ChildBands[0].Band.AddNew(); newItemGridRow1.Cells["DisclosureDataItemID"].Value = section2Row.DisclosureDataItemID; newItemGridRow1.Cells["DisclosureDataSection"].Value = section2Row.DisclosureDataItemDescription; newItemGridRow1.Fixed = true; int disclosureDataItemID = section2Row.DisclosureDataItemID; foreach (DisclosureDataSectionDataSet.DisclosureDataSectionDisclosu1Row section3Row in section2Row.GetDisclosureDataSectionDisclosu1Rows())//.Select("DisclosureDataItemID = " + disclosureDataItemID)) { DataRow[] chartRows = _dsChart.ChartOfAccounts.Select("NominalCode = '" + section3Row.DisclosureCodeChartDisplay + "'"); if (chartRows.Length != 0) { // //tw.Write(section3Row["DisclosureCodeChartDisplay"] + " - " + chartRows[0]["Description"]); ArrayList tagArray = new ArrayList(); tagArray.Add(section3Row["DisclosureCodeChartDisplay"]); tagArray.Add(section3Row.ApplyTranslation); tagArray.Add(section3Row.TranslationRate); UltraGridRow newItemGridRow2 = newItemGridRow1.ChildBands[0].Band.AddNew(); newItemGridRow2.Cells["DisclosureDataCode"].Value = section3Row["DisclosureCodeChartDisplay"] + " - " + chartRows[0]["Description"]; //newItemGridRow2.Tag = section3Row["DisclosureCodeChartDisplay"]; ; newItemGridRow2.Tag = tagArray; newItemGridRow2.Fixed = true; newItemGridRow2.Update(); } } //tw.WriteLine(); } newItemGridRow.CollapseAll(); ultragridDisclosureData.ResumeLayout(); ultragridDisclosureData.EndUpdate(); ultragridDisclosureData.ResumeRowSynchronization(); }