Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Grid refreshing
Message
From
07/08/2001 13:29:06
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Title:
Miscellaneous
Thread ID:
00540286
Message ID:
00540810
Views:
14
>
>No my capslock was on for a moment b4 I realized it. I only shout at my kids.
>So what I am describing is normal behavior? That grid items are not clickable?

:) They're, but control (text1) gets click event not grid. If you code :

this.parent.parent.click

In column.text1 then it calls grid's click. W/o other shortcuts and creating a class you could code this all grid controls like this :
-In form designer select your grid
-Go to command window
-modi comm xx
lcCommStr = 'this.parent.parent.click'
aselobj(arrGrid)
for each oColumn in arrGrid[1].Columns
  for each oControl in oColumn.Controls
      oControl.WriteMethod('Click',lcCommStr)
  endfor
endfor
Select code, right click and execute selection.
If you don't have fancy controls like container, pageframe etc in grid this work as a temporary version (temp because too much unnecessary code in grid).

Another slick way could be like (I would try this first):
*Grid.BeforeRowColChange - maybe in when if coming from another control
lparameters nColIndex
this.Tag = iif(mdown(),'click','')

*Grid.AfterRowColChange
lparameters nColIndex
if this.Tag='click'
 this.Tag=''
 this.Click
endif
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