Infragistics WinGrid Column No Edit C#
Below is a foreach loop which blocks editing in the Infragistics WinGrid. I am sure that if you look through the settings an an Infragistics Grid this can be done accomplished in an alternative manner. I am also sure if the readers of this post have used the Infragistics Grid they know that it is very flexible. The problem with the flexibility of the control is that some settings are extremely buried and hard to find. The only thing that is harder to find that unique settings in Infragistics controls is the documentation supporting the many features that are available at design time. Anyway, enough with the complaining as I actually love these controls and could not have accomplished several projects with in an acceptable amount of time without them. They also look great. Since I am creatively challenged this is a large plus.
To get to the in depth features you will have to reference the Infragistics .dll in your using statements.
using Infragistics.Win.UltraWinGrid;
After setting up your databindings but before applying the .databind() insert these lines.
foreach(UltraGridColumn uc in grdMail.DisplayLayout.Bands[0].Columns)
{
uc.CellActivation = Activation.NoEdit;
}
Just substitute grdMail with the name of your grid and you are set.
Later,