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
75
UltraGrid Making cells Readonly (not all the row)
posted

Hi, i don't know how to make a cell ReadOnly, i want to have all a Row as readonly but one colum may be editable.

I'm programming in C# .NEt 2008 and using an ultragrid, i like to have all columns except one in mode readonly.

 

Thanks

  • 3565
    Suggested Answer
    posted

    You can make a row or cell read-only by setting its activation property such as:

    'Read-only cell
    Dim PriceCell As UltraGridCell = e.Row.Cells(QuoteData.Summary.PriceColumn.ColumnName)
    PriceCell.Activation = Activation.NoEdit

    'Read-Only Row
    e.Row.Activation = Activation.NoEdit

    Best event to handle these things is usually the InitializeRow event.