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
715
How to disable row?
posted

Hi!

How to disable row in runtime?

Thank you.

Parents
No Data
Reply
  • 40030
    Suggested Answer
    Offline posted

    Hi, 

    The xamWebGrid doesn't offer a property on a Row to disable it.  However, its definitely achievable via Styles.

    Style s = new Style(typeof(CellControl));

    s.Setters.Add(new Setter(CellControl.IsEnabledProperty, false));

    s.Setters.Add(new Setter(CellControl.ForegroundProperty, new SolidColorBrush(Colors.LightGray)));

    ((Row)this.xamWebGrid1.Rows[0]).CellStyle = s;

    -SteveZ

Children