i have the following scenario in my grid , the data of some cells are changed only i can get the cell and set the new content but the data not refresh ,
i'm trying to call cell.refreshContent() and not affect and when call grid.updateData(); it update the all grid and i need to update cell only
Hello ueldeep,
Thank you for your post!
Currently, the best way of refreshing the data in the IGGridView is to call grid.updateData(), as cell.refreshContent() is more for the content of that cell and not so much the data that it holds. For instance, the default content of a cell is a TextView, and that content doesn't really change when the underlying data is updated. Using this TextView, there is a way that you can update on a cellular basis though. You can use the cell.getTextView().setText() method to set the text of your cell to what you have set in your data. There is one caveat here though, in that for this method of updating on a cellular basis to work, you will need to know the cell that you are updating the data on.
You can find the cell you are changing the underlying value of by comparing the property that has been edited with the columns in your grid and getting the index of that column. Then, you will need to find the index of the data item that you are editing in your data source. These will reflect the column index and row index that represent the cell that you are changing, and by using an IGCellPath(column index, 0, row index), you can use grid.cellAtPath(IGCellPath mypath) to retrieve the cell at those indices and update it accordingly based on the methods described above.
Please let me know if you have any other questions or concerns on this matter.
Sincerely,AndrewAssociate DeveloperInfragistics Inc.www.infragistics.com/support
Hi,
please, i need quick answer for previous question