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.
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).
Hi,
I am not sure, but I have the following:
ultragrid.Datasource = datasource;
As you mentioned before this will re create all rows, I dont want that because I am scrolling down to find something and my application is set to refresh the data periodically so it gets me to the top of the grid again.
I want to keep refreshing the data but dont want to be sent back to the top every time I refresh it.
So setting the Datasource every time I want to refresh my data gives me problems, I tried this: grid.Rows.Refresh(ReloadData), but I am not sure if I am using it correctly but my grid is never being updated.
What do you suggest me to do?
Hello,
Thank you for your prompt reply.I tried using row.refresh property it does refresh the value property of each cell not text property which is changed.I tried refreshdisplay and fireinitializerow options.But that didnt work for me.I want the values which is entered need to be refreshed.That is the text property of the cell.What is efficient way to do it?And as u said I havent implemented IBindingList for datasource.