Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
310
Prevent editing by band
posted

Is there a way to prevent editing of all rows in a specific band of an UltraGrid?

I know I can set each column's CellActivation property.

Ideally, I would prefer to display an UltraTree instead of a sub-Band.  Short of that, the rows in the targeted sub-band are for informational purposes.

Parents
No Data
Reply
  • 469350
    Verified Answer
    Offline posted

    You don't need to set a property on every row. You could set it at the band level:


            private void ultraGrid1_InitializeLayout(object sender, Infragistics.Win.UltraWinGrid.InitializeLayoutEventArgs e)
            {
                UltraGridLayout layout = e.Layout;
                UltraGridBand band = layout.Bands[0];

                band.Override.AllowUpdate = DefaultableBoolean.False;
            }

Children
No Data