Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Hide grid column
Message
From
23/02/2005 11:39:13
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
23/02/2005 11:28:08
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7
OS:
Windows XP
Network:
Windows 2000 Server
Database:
MS SQL Server
Miscellaneous
Thread ID:
00989465
Message ID:
00989676
Views:
65
>If i change row it is update, but if change column is not updated
>
>i am not working with table buffering, is a readwrite resulting cursor from a select statement.

If you change column it's not updated? Are you sure. Try this:
Public oForm
oForm = Createobject("myForm")
oForm.Show

Define Class myForm As Form
  DataSession=2
  Add Object myGrid As Grid

  Procedure Load
    Select * From ;
      (_samples+'data\customer') ;
      into Cursor crsTest Readwrite
    Use In 'customer'
  Endproc

  Procedure Init
    With This.myGrid
      For ix=1 To .ColumnCount
        With .Columns(m.ix)
          .AddObject("myTextbox","myTextBox")
          .CurrentControl="myTextbox"
          .myTextbox.Visible = .T.
        Endwith
      Endfor
    Endwith
  Endproc
Enddefine

Define Class myTextbox As TextBox
  Procedure LostFocus
    Messagebox(This.Parent.ControlSource + ":" + ;
      Transform(Evaluate(This.Parent.ControlSource)))
  Endproc
Enddefine
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform