We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

Virtual Tree Grid (2)

Thread ID:

Created:

Updated:

Platform:

Replies:

635 Jul 18,2002 07:05 AM Jul 18,2002 07:27 AM Windows Forms 1
loading
Tags: GridControl
Sebastien Lange
Asked On July 18, 2002 07:05 AM

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?

Sebastien Lange
Replied On July 18, 2002 07:27 AM

externalData.CollapseData(index); this.gridControl1.ResetVolatileData();

CONFIRMATION

This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.

;