Hello Experts,
I hav a DGV which shows data of my transaction_table. There r 4 columns ID, NAME, DUE_DATE and STATUS. Let ID is 1, NAME is jak, DUE_DATE is 25.02.2009 and status is notpaid(by deafault). Now , I want to set row color according to following condition...
if DUE_DATE >= current date(today's) and status="notpaid"
then set row color= green
if else
DUE_DATE < current date(today's) and status="paid"
then set row color= green
else
set row color = red
Bcoz i m newbi tht's why i really don't hav any idea abt thid. please guide me with proper coding.
I m using VS 2008, SQLSERVER with visiual basic...
THANXXXX IN ADVANCE....
I hav a DGV which shows data of my transaction_table. There r 4 columns ID, NAME, DUE_DATE and STATUS. Let ID is 1, NAME is jak, DUE_DATE is 25.02.2009 and status is notpaid(by deafault). Now , I want to set row color according to following condition...
if DUE_DATE >= current date(today's) and status="notpaid"
then set row color= green
if else
DUE_DATE < current date(today's) and status="paid"
then set row color= green
else
set row color = red
Bcoz i m newbi tht's why i really don't hav any idea abt thid. please guide me with proper coding.
I m using VS 2008, SQLSERVER with visiual basic...
THANXXXX IN ADVANCE....