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. Image for the cookie policy date
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Virtual Tree Grid (2)

Thread ID:





635 Jul 18,2002 11:05 AM UTC Jul 18,2002 11:27 AM UTC WinForms 1
Tags: GridControl
Sebastien Lange
Asked On July 18, 2002 11:05 AM UTC

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 11:27 AM UTC

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


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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon

Live Chat Icon For mobile
Live Chat Icon