Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
OnFieldChange and OnRowChange in grid
Message
From
13/03/2004 04:35:08
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
12/03/2004 06:15:19
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Miscellaneous
Thread ID:
00885527
Message ID:
00885900
Views:
10
>What is the best way to bind those events to the grid?
>I thought about BeforeRowColChange but i didn't know if user had changed either field or row or both.
>
>Any idea?

You can trap what's changing in BeforeRowColChange event. Part of code related with it from one of my classes :
Lparameters nColIndex
Local llChangingRow,lnTop,lnBottom,lnMouseRowPos,lnMouseColPos
With This
  If Mdown()
    lnBottom = .Top+.HeaderHeight+.RelativeRow * .RowHeight
    lnTop = m.lnBottom - This.RowHeight
    lnMouseRowPos = Mrow(Wontop(),3)
    lnMouseColPos = Mcol(Wontop(),3)
    llChangingRow = !(Between(m.lnMouseRowPos,m.lnTop, m.lnBottom) ;
      and Between(m.lnMouseColPos,.Left,.Left+.Width))
  Else
    llChangingRow = Inlist(Lastkey(),24,5,18,3,141,145,148)
  Endif
Endwith
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