none
how to change background color of cell in datagridview

    Question

  •  

    Hi,

     

    I want to change the background color of cell in datagridview which depends on the condition.

    Example

     

    if dgv.rows(i).cell(i).value > 35 then

     

    cell(i) should be in red color

     

    else

     

    cell(i) should be in green color

     

    Endif

     

    Can you write a code  for me to change background color of the cell.

     

    Thanks.

     

    Best Regards

    Kashif Chotu

    Monday, February 25, 2008 7:14 PM

Answers

All replies