Home - Forums-.NET - FlyGrid.Net (Windows Forms) - Insert Row in nested Grid

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

Insert Row in nested Grid
Link Posted: 21-Feb-2006 22:30
I have a flygrid with many nested grids based on a single datatable.
Now I need to insert a new row at a user selected position in one of the nested grids.

I used the way to insert a new row in the datatable and manage insert by sorting the grids on a defined sort column with data refrech after inserting the new row. This works fine. But after inserting, all grids are collapsed.

Is there another way to insert a new datatable row into a nested grid without refreching the flygrid.

My refrech code look like.
    this.Rows.Reset();
    this.Rows.RootNode = null;    
    this.Invalidate();
Link Posted: 22-Feb-2006 08:19
We're simplified this task and in the nearest FlyGrid update (end this week) you'll can use one of the AddNew methods to add row into the nested or root grid.
Link Posted: 27-Oct-2006 15:10
Has this \"insert\" feature been implemented in the latest release?  If so, could you give a pointer as to how to do this?

Thanks

-Shl
Link Posted: 27-Oct-2006 22:47
You can see example in the VirtualGrid sample of FlyGrid.Net:
[c#]
private void rowCountUpDown_ValueChanged(object sender, System.EventArgs e)
{
  virtualGrid.Rows.Reset();
  virtualGrid.Invalidate();
}