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
85
how to refresh ultragrid without refreshing the row which is being edited by user?
posted

Hello,I want to implement functionality to refresh ultragrid without refreshing the row which the user is editing that is the row in which user is entering the value.I am displaying ultragrid by binding the datatable to it.Means no columns added design time but will be displayed as per data in datatable.To refresh the grid I am not using inbuilt refresh method provided by ultragrid but I simply bind the data source again.So when grid is refreshed all rows should be same as when it was first displayed but the row which I was editing should be as it was left.Is there any inbuilt property or method available for that?Or any other way to implement this?

Thank you. 

 

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    Setting the DataSource of the grid will blow away all of the rows and columns and create new ones based on the data source, so you should avoid that if possible.

    If your data source implements IBindingList, then it will automatically notify the grid of any changes. If it does not and you want the grid to pick up changes, then you can try calling grid.Rows.Refresh(ReloadData). 

Children