Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
505
children rows in the groupByRow not refreshed
posted

I have a grid arranged to have a groupByRow and the underneath child rows.  At the runtime.  I used ListObject to change the value of the cell of the row.  It got changed.  But the new value did not display (refresh) until I mouse over the cell.  The similar thing happened when I used ListObject to change the value of one cell in the row and applied the change to all sibling rows, the value of the cell got changed, but the sibling rows, until the mouse hovering them and they got changed.

This seems the grid refresh issue, can you tell me how I can work around it, I want the grid refresh immediately after the underneath ListObject is changed.

 

Parents
No Data
Reply
  • 37774
    Suggested Answer
    posted

    It sounds like your data source is not notifying the grid that a value has been change, so the grid doesn't ask for the value again until that cell is invalidated (i.e. by mousing over it).  Does your data source implement IBindingList?  If so, you will probably have to implement INotifyPropertyChanged on your list object class so that that BindingList implementation can hook into that event and notify the grid via a ListChanged event.

    -Matt

Children