Hello Everyone
I have to Remove Pencil Image in UltraGrid which is visible when column in grid is updated. Is there any property in UltraGrid to set in order to get rid of this pencil image while updating.
The pencil icon indicates that the row has pending changes that need to be written to the grid's DataSource.
So are you asking how to hide this icon wihout committing the changes? Or do you want to commit the changes?
The former doesn't really make any sense. So your question is probably how to commit the changes. The answer to that is to call Update on the row (to commit a single row) or UpdateData on the grid (to commit all rows).
Hi Mike,
I am kind of similar situation where by I have to hide the image without committing the changes. I don't want to completely blank out the image by setting DataChangedImage to null as the image should be visible in other scenarios. Can you please help he how can I achieve this.
Hello Nipun,
What are these other scenarios? Could you please explain in details what is your scenario exactly, so I can know how to assist you further on that matter?
Also, please, if possible, create new threads(questions) in our forum, so we can have a more optimized and better searching engine, for the other community members
Hi Boris,
The thing I am trying to achieve is kind of masking and changing some column values only at display level. Hence I am updating the grid rows with the new value which would be only displayed and not saved. Once user make some changes in other columns then I need to show that pencil image. Currently since I am masking all the rows at the load itself , the pencil image is getting shown at each row.
Also would start new thread in future. The context of my problem was related to this thread, hence continued on this.
Thanks,
Nipun
This forum is for Windows Forms. If you are using ASPX, then presumably, you are using the ASP.NET controls or some other platform, and you need to post your question in the appropriate forum for that platform/control.
How do you do this in ASPX?
RowSelectorImages property does not exist.
Hi Nipun,
I'm having trouble understanding what you want, but it sounds like maybe you are trying to edit the data in code and commit those changes so the row doesn't display as dirty.
If that's what you want, then after you set the value(s) you want, you commit the row by calling the Update method on that row. Or, you can commit all changes in all rows in the grid by calling grid.UpdateData().