The Syncfusion native Blazor components library offers 70+ UI and Data Viz web controls that are responsive and lightweight for building modern web apps.
.NET PDF framework is a high-performance and comprehensive library used to create, read, merge, split, secure, edit, view, and review PDF files in C#/VB.NET.
Hi,
In the VirtTreeGrid sample, I try to add a method Insert in SampleDate class:
public void Insert(int index, SampleData newData)
{
internalRowCount++;
ArrayList array = new ArrayList(data);
array.Insert(index, newData);
data = (SampleData[])array.ToArray(typeof(SampleData));
data[GetParent(index)].ExpandState = TreeNodeState.Closed;
data[GetParent(index)].ExpandState = TreeNodeState.Opened;
}
In a button_click:
gridControl1.Model.BeginUpdate(Syncfusion.Windows.Forms.BeginUpdateOptions.None);
externalData.Insert(3, new SampleData(1, TreeNodeState.NoChildren, ...);
gridControl1.Model.EndUpdate();
The model has been changed, but not the view.
If I collapse myself the parent and then expand it, then it is updated.
How can I update it by code?