Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How can i change grd text1 backcolor if data changed
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00719059
Message ID:
00719094
Views:
14
You might check the AfterRowColChange event. I use the grids tag to store information (trans(recno())),
* Code in the AfterRowColChange event
if myform.mygrid.tag#trans(recno())
   * ... stuff to do when the row chages
endif
Myform.MyGrid.Tag=trans(recno())
... to assure my methods won't fire if the action is only a column change.


>Hi All,
>i have a grid class and it uses also textbox class. and textbox class removes default text1's and replace own. grid AllowAddNew property is .T. (this class is specially was build for use allowaddnew proprty) . when the user press DownArrow textbox class inserts a new row at the bottom and if didn't change any field at the new row and user hit press the UpArrow new row deleting (classic TableRevert(.t.) ) . Now i want to do this ;
>
>when users press DownArrow and any field has changed at the new row textbox class should fill all of fields backcolor eg. 255,255,0 at the new row Or while user navigations between cells and changed any field at any row also should fill only changed cell backcolor
>
>How can do this ?
>
>PS: it related Getfldstate() but i've no any idea how can do this...
>
>TIA
Imagination is more important than knowledge
Previous
Reply
Map
View

Click here to load this message in the networking platform