Home - Forums-.NET - FlyGrid.Net (Windows Forms) - deleting a new node

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

deleting a new node
Link Posted: 13-Oct-2005 04:54
Hi,
For deleting an existing node I can do the following:

If Not node Is Nothing Then
currentRow = node.Index
Dim dr As DataRowView = CType(node.Value, DataRowView)
dr.Delete()
endif

But how can i delete a new node that hasn't been added yet?

Thanks
Link Posted: 13-Oct-2005 09:05
In this case FlyGrid refreshes rows and you do not need to deleted node, associated with delete row.
Link Posted: 13-Oct-2005 20:52
I'm not sure I understand your reply...

Say the user enters data on the new row, then it is no longer the new row, and yet it is not part of the datarowview. How can the flygrid be refreshed ?
Link Posted: 15-Oct-2005 07:14
Sorry for incorrect answer,
But how can i delete a new node that hasn't been added yet?

If this means How to hide AddNewRow node?

In this case it is enough to remove ShowAddNewRow from flyGrid.Rows.Options:
[c#]
  flyGrid.Rows.Options &= ~RowsOptions.ShowAddNewRow
Link Posted: 16-Oct-2005 21:28
This is not what I wanted, but I 've managed to solve my problem.
Thanks