Hi,
When I'm in a grid and change value of cell, in the RowSelector at the left of the grid, a small pencil image is displayed.
It is possible to never show this image? I can call the method UpdateData of the grid to hide it but it is possible to never show it?
Thank you.
You can hide the RowSelectors entirely by using the RowSelectors property on the override.
So something like:
private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e) { UltraGridLayout layout = e.Layout; UltraGridBand band = layout.Bands[0]; UltraGridOverride ov = layout.Override; ov.RowSelectors = DefaultableBoolean.False; }
If you want to keep the RowSelectors, then you will need to change the images. Do you want to remove all RowSelector images or just the pencil?
Whatever you want to do, you can do it using the RowSelectorImages property on the DisplayLayout.
So, for example, this will get rid of the pencil image on an inactive row:
layout.RowSelectorImages.DataChangedImage = null;
If you want to remove the pencil on the active row, you could do this:
layout.RowSelectorImages.ActiveAndDataChangedImage = null;
But that will also remove the little active row triangle.
Thank you Mike, this is exactly what I want to know... change the image to null.