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
145
Read Only Grid
posted

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
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
Parents
  • 345
    Suggested Answer
    posted

    HI,

    try the below code.

                   UltraGridBand band = ultragrid1.DisplayLayout.Bands[0];

                    foreach (UltraGridColumn col in band.Columns)

                    {

                            col.CellActivation = Activation.NoEdit;                 

                    }

     

     

Reply Children
No Data