I have a problem with Expanding the DataRows. If I preload all of the data there is no problem. However, I can't do that.
What I do is when a user clicks the expand I capture that in the before row expanded. Then I update my DataSource with the new structure including the child elements. The plus disappears, but the rows do not show. The rows are there and if I click off the row and back on it they are there.
Thanks in advance for any help.
I've the same problem, but it appears only if there is only one row in the parent table. If there are more than one rows in the parent table the function is ok.
Thanks in advance for any help
When I look at the DataSource it is correct. When I look at the actual Row it says that it does not have children. For some reason activating it seems to make childrows with more than one row work. However a single row does not expand still.
private void ugCustomer_BeforeRowExpanded(object sender, Infragistics.Win.UltraWinGrid.CancelableRowEventArgs e) { Infragistics.Win.UltraWinGrid.UltraGridRow r = e.Row;
if (r.Band.Key.Equals("List`1")) //r.Band.Key.Equals("DataBindingList`1") || { if (r.ChildBands[0].Rows.Count < 1) { _helper.Customers = _customer.AddSites(_helper.Customers, (int)r.Cells[1].Value);
//ugCustomer.DataSource = _helper.Customers; r.Activate(); //if (r.HasChild())