narasiman rao

narasiman rao

  • NA
  • 519
  • 768.8k

how to give fore color&backgroundcolorusing switchcase inDGV

Jan 12 2013 7:49 AM
how to give fore color and back ground color using switch case in data grid view



 output as follows;

 Date     Session  Ck   Mk    RK     VB    GS     CMK    UNNI   MS

 7/1/12    1       REO  TAs   PH2
 7/1/12    2       REO  TAs   PH2
 7/1/12    3       REO  TAs   PH2
 7/1/12    4       REO  TAs   PH2

 8/1/12    1       REO  TAs   PH2
 8/1/12    2       REO  TAs   PH2
 8/1/12    3       REO  TAs   PH2
 8/1/12    4       REO  TAs   PH2

 using switch case how to give fore and Back ground color to 7/1/12 and 8/1/12 date.


please send the code using c sharp;


Answers (4)