Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Master/detail

FlyGrid.Net (Windows Forms)

.NET Datagrid - Fast, highly customizable, industry standards .NET data grid control for WinForms

This forum related to following products: FlyGrid.Net

Master/detail
Link Posted: 17-Jan-2006 21:14
Hello,
when i try to add a row to one of my nested table, the fly grid does not show it.

i'm using virtual mode, and tha data is binded to a datatable. (each level to a different table)

please help,
Guy
Link Posted: 18-Jan-2006 10:54
After addition of new row to the one of your nested grids please reset Rootnode of parent NestedGridNode (or VirtualNestedGridNode).

private ResetViewPortRows(FlyGrid flyGrid, int rowIndex)
{
  NestedGridNode nestedParent = flyGrid.Rows.Items[rowIndex] as NestedGridNode;
  if (nestedParent != null)
  {
    FlyGridViewPort port = nestedParent.NestedInternal;
    if (port != null)
    {
      port.Rows.BeginUpdate();
      try
      {
        port.Rows.RootNode = null;
      }
      finally
      {
        port.Rows.EndUpdate();
        port.Rows.OnChanged();
      }
    }
  }
}
Link Posted: 22-Jan-2006 00:54
when do i need to call the function?
Link Posted: 22-Jan-2006 09:38
After row addition.