Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

click event in grid 1

Status
Not open for further replies.

PeriyurParthi

IS-IT--Management
Jul 18, 2001
258
IN
hi all
help how to do when i click a textbox or a cell in a grid the popup has to be opened,replies pls
parthi
 
Hi!

In the each column there is a control. Specify in that controls Click event (or DblClick event) the code that runs your form. Better do this by calling custom form method, so there is little of code to copy and maintain in each grid control. For example:

Put thisform.CallPopup() in the Click event of control in each grid column. Than create the CallPopup method on form and add code in it that shows the popup window you require.
Vlad Grynchyshyn
vgryn@softserve.lviv.ua
The professional level of programmer could be determined by level of stupidity of his/her bugs
 
Vlad,

Speaking of grid controls I've been playing with grids and am trying to add a check box to a column. Now, I added a checkbox and in the INIT of the form I deleted the textbox and got a control source. But when I run it, nothing shows until I click on a box in column whereupon a checked checkbox appears. This moves from record to record as I click elsewhere. How do I get it to show an unchecked box in all but the current records box? I think there's some threads about this around but the search doesn't work just now. -- Dave
 
Hi dedmod

In the init event of the grids specific column..

WITH THIS

.VISIBLE = .F.

.ADDOBJECT('CheckBox1','CheckBox')
.CURRENTCONTROL = 'CheckBox1'
.REMOVEOBJECT('Text1')
.SPARSE = .f.

.VISIBLE = .T.

ENDWIT
WITH THIS.checkbox1
.CAPTION = "MyCaption"
** ETC ETC OTHER PROPERTIES
ENDWITH

Hope this helps
ramani :-9
(Subramanian.G)
FoxAcc
ramani_g@yahoo.com
LET KNOW IF THIS HELPED. ENOUGH EXPERTS ARE HERE TO HELP YOU OUT! BEST OF LUCK :)
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top