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
1910
Change background color on specific cell in the AddNewRow
posted

How can I change the background color (CSSClass) of a specific cell in the AddNewRow row?

Parents
No Data
Reply
  • 16310
    Offline posted

    Hi,

    You can apply a custom css class through the AddNewRowCssClass property exposed by the RowAdding behavior, or you can use a css selector, as explained in the WebDataGrid CSS Styling Guide.

    An example of how to color the first cell in the AddNEwRow using the AddNewRowCssClass:

    <ig:RowAdding AddNewRowCssClass="NewClass">
    </ig:RowAdding>

    ..

    tbody > tr.NewClass > td:first-child
    {
        background-color: Red;
    }

    Please let me know if you have further questions.

Children
No Data