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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Grid costumize Procedure

Status
Not open for further replies.

warik

Programmer
Jun 28, 2002
169
ID
This is sample of my grid property:

ThisForm.Grid1.ColumnCount=6
ThisForm.Grid1.RecordSource='wla'
ThisForm.Grid1.Column1.Width=40
ThisForm.Grid1.Column1.Header1.Caption='My Field'


The problem is, I would like to take some code at DoubleClick event at column1, Can I do that except write it at Object DBLClick Procedure?

Maybe something like this:
Thisform.Grid1.Column1.DblClick=.....
or what?

Thank you in advance
 
Warik,

The usual way to do this is to set the ColumnCount property in the form designer. This will give you access to all the columns' properties and methods in the form designer. You can then add code to the DoubleClick event at design time.

Is there any reason why you can't do that in this case?

Mike


Mike Lewis
Edinburgh, Scotland
 
I have old Foxprg26 app with lot of forms.
I have an idea to put grid to some of these window.
But...
"I would like to take some code at DoubleClick event at column1"

or

some validation code to column 2

 
nst32b and warik

I have old Foxprg26 app with lot of forms.

faq184-2164




Mike Gagnon

If you want to get the best response to a question, please check out FAQ184-2483 first.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top