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
106
Change Cell Background Color in WebDataGrid
posted

Hi,

I would like to change the background color of a cell when its values is changed. Can anybody please help me.

Thanks in Advance.

Bhaskar.

Parents
  • 6748
    Suggested Answer
    posted

    Normal 0 false false false EN-US X-NONE X-NONE MicrosoftInternetExplorer4

    Hi,

     

    You can handle Exiting edit mode event and change the background color there. Something like this:

    function WebDataGrid1_CellEditing_ExitingEditMode(sender, eventArgs)

    {

         

        eventArgs.getCell().get_element().style.backgroundColor = "red";

    }

     

    Hope this helps.

     

    Regards,

    Lyuba

    Developer Support Engineer

    Infragistics

    www.infragistics.com/support

     

     

Reply Children