Welcome To The Home Of The Visual FoxPro Experts  
home. signup. forum. archives. search. articles. downloads. faq. members. files. rss.
 From: Anil Sharma
  Where is Anil Sharma?
 ludhiana
 India
 Anil Sharma
 To: Binod Binani
  Where is Binod Binani?
 Kolkata
 India
 Binod Binani
Subject: RE: Grids Rows Two Color
Thread ID: 187638 Message ID: 188530 # Views: 1 # Ratings: 0
Version: Visual FoxPro 9 SP2 Category: Grids
Date: Sunday, August 10, 2008 1:50:24 PM         
   



> >
> >
Public oForm
> > oForm = Createobject("myForm")
> > oForm.Show
> > 
> > Define Class myForm As Form
> >   DataSession = 2
> > 
> >   Add Object myGrid As Grid
> > 
> >   Procedure myGrid.Init
> >     This.SetAll('DynamicBackColor', 'IIF(myCursor.qnty < 0, 0x0000FF, 0xFFFFFF)')
> >     This.SetAll('DynamicForeColor', 'IIF(myCursor.qnty < 0, 0xFFFFFF, 0x0)')
> >   Endproc
> >   Procedure myGrid.AfterRowColChange
> >     Lparameters nColIndex
> >     If This.RowColChange % 2 = 1
> >       This.SetAll('Enabled', myCursor.qnty >= 0)
> >       This.SetAll('readonly',myCursor.qnty < 0)
> >     Endif
> >   Endproc
> > 
> >   Procedure Load
> >     Create Cursor myCursor (dates d, qnty Y)
> >     Local lcValues
> >     lcValues = '10000,-8000,9000,11500,-1500,4500'
> >     For ix=1 To Occurs(',',m.lcValues)+1
> >       Insert Into myCursor Values (Date(2008,7,17+m.ix), Val(Getwordnum(m.lcValues,m.ix,',')))
> >     Endfor
> >     Locate
> >   Endproc
> > Enddefine

> >
> > Cetin Basoz
>
>
> Thanx Mr Cetin.Nice.
>
>
> *Exchange of $1 Create only $1, But Exchage of one Ideas Makes different two Ideas*

Hi binod
if u think Cetin sir answer is helpful for u. Then just give him rating for his work!.
and ratings tell another ppl that you got the solution.

Anil
(Fox is the solution for almost everything!!)

ENTIRE THREAD

Grids Rows Two Color Posted by Binod Binani @ 8/5/2008 7:35:24 AM
RE: Grids Rows Two Color Posted by Erik Gomez @ 8/5/2008 7:46:34 AM
RE: Grids Rows Two Color Posted by Binod Binani @ 8/5/2008 4:32:25 PM
RE: Grids Rows Two Color Posted by Erik Gomez @ 8/6/2008 4:53:02 AM
RE: Grids Rows Two Color Posted by Glenn Villar @ 8/5/2008 8:11:11 AM
RE: Grids Rows Two Color Posted by Binod Binani @ 8/5/2008 4:30:34 PM
RE: Grids Rows Two Color Posted by Cetin Basoz @ 8/5/2008 9:27:39 AM
RE: Grids Rows Two Color Posted by Binod Binani @ 8/5/2008 4:27:00 PM
RE: Grids Rows Two Color Posted by Anil Sharma @ 8/10/2008 1:50:24 PM
RE: Grids Rows Two Color Posted by Binod Binani @ 8/11/2008 8:32:09 AM