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
955
How to set some cell or some row readonly
posted

How to set some cell or some row  readonly?

Thanks

  • 5520
    Suggested Answer
    posted

    considering that you have

     ultraGrid1.DisplayLayout.Override.AllowUpdate = DefaultableBoolean.True;
    ultraGrid1.DisplayLayout.Override.CellClickAction = Infragistics.Win.UltraWinGrid.CellClickAction.Edit;

    to Set a column to read only:

     ultraGrid1.DisplayLayout.Bands[0].Columns[1].CellActivation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;

     

    to set a row to read only:

    ultraGrid1.Rows[0].Activation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;

     

    to set a cell to read only:

    ultraGrid1.Rows[0].Cells[0].Activation = Infragistics.Win.UltraWinGrid.Activation.NoEdit;

    hope this helps