Hi,
i use Ultra Grid to load my data, after binding the grid to datatable, i add a image to one of the column.
when the grid shows in the form it is shown with the pensil mark in each row, this gives a meaning that every row is selected.
Please let me know how to remove thsi pensil mark that is the edit mark.
Thanks Mike. Now my next question is how i can mark and show the row as edited by user or the row dirty. Is there any direct way or i need to write some plumbing code to change the row color when the user edits it. Thanks,Raj
Hi Raj,
Oh, okay, you left out that that the user was moving to another row. There's no way to keep the row in edit mode once another row gets focus. The DotNet BindingManager implicitly calls an EndEdit once the position of the CurrencyManager is changed.
Thanks for the quick response Mike.
I have an event handler for AfterCellUpdate, where i do row validation with respect to the user changes. Is this causing this behavior? I do not explicitly update the row or do a updatedata. When user makes a change and moves out of the row (selects a different row), the pencil disappears on the row.
Thanks,
Raj
Why is the pencil disappearing? That is not the default behavior. The pencil image appears when a row is made dirty by the user or in code. It does not disppear until the row is committed or cancelled. So something in your code must be committing or cancelling the changes on the row.
Sandip,
I have the reverse of this question. After i do the row.update, the pencil is removed. I have editable columns on my grid, when user edits the cells, i want the pencil to reappear. Now it appears momentarily and then disappears. I want the pencil to indicate the dirty rows of the grid to user. Is there any other approach to do this?