or
| private void populateGroupFactControls() | |
| { | |
| var level2Grids = from fact in activeJob.FactSet | |
| where fact.Level == 1 && fact.DataTypeDesc == p.factTypeGroup | |
| select new | |
| { | |
| GridName = uiUtility.CreateFactGridName(fact.FactName), | |
| Rows = | |
| from childFact in activeJob.FactSet | |
| where childFact.Level == 2 && childFact.ParentFactID == fact.FactID | |
| join factValue in activeDataElement.Values | |
| on childFact.FactID equals factValue.FactID | |
| group factValue by factValue.GroupInstanceID | |
| into rowCells | |
| select new | |
| { | |
| RowID = rowCells.Key, | |
| Cells = rowCells | |
| } | |
| }; | |
| foreach(var grid in level2Grids) | |
| { | |
| var gridControl = (RadGridView) groupFactTable.Controls.Find(grid.GridName, true).First(); | |
| gridControl.Rows.Clear(); | |
| foreach(var row in grid.Rows) | |
| { | |
| GridViewRowInfo newRow = gridControl.Rows.AddNew(); | |
| newRow.Cells[p.RowID].Value = row.RowID; | |
| foreach(var cell in row.Cells) | |
| { | |
| newRow.Cells[cell.FactID].Value = cell.InstanceValue; | |
| } | |
| } | |
| gridControl.Refresh(); // Doesn't seem to help | |
| } | |
| groupFactTable.Refresh(); // Doesn't seem to help either | |
| } | |
Private Sub txtUserName_Click(ByVal sender As Object, ByVal e As System.EventArgs) Handles txtUserName.Click
txtusername.selectall()
End Sub