Hi,
I have a grid that I want the data to be read only but the grid features to be functional. When I set the grid Enabled property to False I cannot sort, filter, etc.
I can disable each column...
Me.UltraGrid1.DisplayLayout.Bands(0).Columns(0).CellActivation = _ Infragistics.Win.UltraWinGrid.Activation.Disabled
Me
and everything works fine. It seems to me I should be able to do this with a lot less effort.
Thanks for the help
ACC
HOWTO:How can I make a grid or a column, row, or cell in the UltraWinGrid disabled or read-only?
HI,
try the below code.
UltraGridBand band = ultragrid1.DisplayLayout.Bands[0];
foreach (UltraGridColumn col in band.Columns)
{
col.CellActivation = Activation.NoEdit;
}