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
3305
trying to enable/disable editing by row on certain cells in my grid
posted

and not having much luck.

in InitializeRow handler I have all the infor I need but e.Row.Cells[4].IsEditable=true;

throws a compile error saying that IsEditable is readonly.

I'm guessing I need to use a style?

the column is an checkbox column,

can anyone shed some light on this for me?

thanks

Parents
  • 3305
    posted

    I've also tried this from the initialize row event and it throw a serious error message

     Style s = new Style(typeof(CheckBoxColumn));
                        s.Setters.Add(new Setter(IsEnabledProperty, false));
                        e.Row.Cells["IsLoadedFromExternalSource"].Style = s;
Reply Children