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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

Hierarchy GDBG Refresh problem

Thread ID:





41494 Mar 2,2006 10:00 PM UTC Mar 3,2006 01:32 PM UTC WinForms 1
Tags: GridControl
Administrator [Syncfusion]
Asked On March 2, 2006 10:00 PM UTC

Here is the scenario i am trying to achieve. I have a typed dataset bounded to Hierarchy GDBG. and data is updated directly to dataset. The problem is user have to explicit click on cell to view the updated data. (I have raised this issue several time on this forum.. but no luck).. so is there any way i can come to know the grid row index based on dataset row i am updating. b/c. if i get the grid row index then i can explicitly call the RefreshRange to refresh the entire row. Regards Yogi

Administrator [Syncfusion]
Replied On March 3, 2006 01:32 PM UTC

Hi Yogi, By using the ListChanged Event in the IBindingList class, you can get the row index of the updated data in the dataset. Here is the code snippet CurrencyManager cm = ((CurrencyManager)(this.BindingContext[this.gridDataBoundGrid1.DataSource, this.gridDataBoundGrid1.DataMember])); IBindingList ibl = ((IBindingList)(cm.List)); ibl.ListChanged += new ListChangedEventHandler(ibl_ListChanged); private void ibl_ListChanged(object sender, ListChangedEventArgs e) { Console.WriteLine(e.OldIndex + ":" + e.NewIndex +":"+ e.ListChangedType); } Here is the sample, explains how to call refresh range in hierarchal GDBG binded with IBindingList. Let us know if this helps. Best Regards, Madhan.


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