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.
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 Philip,
Your code is correct, but the DataChangedImage probably isn't what you want. This image only applies to a row that has pending changes and is NOT the active row. This almost never happens, since the changes are committed as soon as the row is deactivated. The only way this would come up is if you edit a cell value in code for a row that it not active.
Anyway, you probably want something like this:
Private Sub UltraGrid1_InitializeLayout(sender As System.Object, e As Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs) Handles UltraGrid1.InitializeLayout e.Layout.RowSelectorImages.DataChangedImage = Nothing e.Layout.RowSelectorImages.ActiveAndDataChangedImage = Nothing End Sub
If that doesn't work, then my best guess is something else in your application is overriding it or blowing away these property settings. For example, if you do this and then load a saved layout, the layout will restore the original images.
Hi Mike. This hasn't helped me in vb.net? layout.RowSelectorImages.DataChangedImage = nothing.
Any chance you could help, I just don't like those pencils and would like to get rid of them, thanks
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().