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
990
Style Cell ans intializerow
posted

Hello,

I try to change the CssClass property of a cell row from the event initializerow. The class is taken into account in the resulting page, but it is not applied.
Why? and how to apply the classroom?

Sincerely

Parents
No Data
Reply
  • 12679
    posted

    Hello,

    I have  a suggestion:

      void UltraWebGrid1_InitializeRow(object sender, RowEventArgs e)

        {

            //You can get a reference to  each cell form the given row of the grid and apply style.

            e.Row.Cells[0].Style.BackColor = Color.Blue;

            e.Row.Cells[0].Style.BorderColor = Color.Red;

        }

    Hope it helps you.

Children