Hierarchy GDBG Refresh problem

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

1 Reply

AD Administrator Syncfusion Team 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.

Loader.
Up arrow icon