In Order Entry, there is a Lines Detail tab at the bottom with an UltraGrid of the lines. Whether the rows are editable depends on the editability of the field. I want this whole grid to be read only. I can’t do this in the Grid Properties because it doesn’t save. So I’ve tried this on the view initialize:
private void makeGridReadOnly(Infragistics.Win.UltraWinGrid.UltraGrid grid)
{
foreach (var column in grid.DisplayLayout.Bands[0].Columns)
{
column.CellActivation = Infragistics.Win.UltraWinGrid.Activation.Disabled; // Also tried ActivatedOnly;
}
}
This doesn’t do anything. Furthermore, it looks like all the columns are already set to ActivatedOnly, which should not be editable. Any ideas?
It’s the default datasource on the Order Entry screen for the lines. It appears to be overriding any settings. I just want to make the grid read-only, not the fields themselves.
Isn’t there an option to make each column in a grid read only or hidden on the grid control itself? The other technique, since it’s bound to a dataview column is to set the extended properties of the columns displayed to Read Only…