Hi All,
I'm not sure if I am asking the right question so bear with me.
I have a form created in form designer. The form has a grid dropped on it using the form control tool bar. One of the forms command buttons has the following code to get the information into the grid columns:
* Select the Grid Table
Select Options
* Set Grid Properties
Thisform.grdSortOptions.columncount = -1
Thisform.grdSortOptions.recordsourcetype = 1
Thisform.grdSortOptions.recordsource = 'Options'
* Gray out grid rows Based on record count in the table record
Thisform.grdSortOptions.SetAll("DynamicBackColor", ;
"ThisForm.txtGridBackColor.click(Options.so_reccnt)","Column"
* Get the active row when the grid is double clicked
Thisform.grdSortOptions.SetAll("DblClick", ;
"ThisForm.txtRecordNumber.value = str(ThisForm.grdSortOptions.activerow,3,0), " + ;
"ThisForm.txtRecordNumber.dblclick()","Column"
* Show the grid filled in
Thisform.grdSortOptions.refresh()
**
** End of Code
**
Obviously, "DblClick" is not a property. The question is:
How do I get the code into the grid columns 'DblClick' event? Have tried other methods and get 'DblClick event read only'.
Or, maybe more to the point, How do I get the table's record number represented by the grid entry just double clicked? (In this case the record number will be the the row activated by the double click event.)
I still don't know if I'm asking the right question.
Thanks
WJS
I'm not sure if I am asking the right question so bear with me.
I have a form created in form designer. The form has a grid dropped on it using the form control tool bar. One of the forms command buttons has the following code to get the information into the grid columns:
* Select the Grid Table
Select Options
* Set Grid Properties
Thisform.grdSortOptions.columncount = -1
Thisform.grdSortOptions.recordsourcetype = 1
Thisform.grdSortOptions.recordsource = 'Options'
* Gray out grid rows Based on record count in the table record
Thisform.grdSortOptions.SetAll("DynamicBackColor", ;
"ThisForm.txtGridBackColor.click(Options.so_reccnt)","Column"
* Get the active row when the grid is double clicked
Thisform.grdSortOptions.SetAll("DblClick", ;
"ThisForm.txtRecordNumber.value = str(ThisForm.grdSortOptions.activerow,3,0), " + ;
"ThisForm.txtRecordNumber.dblclick()","Column"
* Show the grid filled in
Thisform.grdSortOptions.refresh()
**
** End of Code
**
Obviously, "DblClick" is not a property. The question is:
How do I get the code into the grid columns 'DblClick' event? Have tried other methods and get 'DblClick event read only'.
Or, maybe more to the point, How do I get the table's record number represented by the grid entry just double clicked? (In this case the record number will be the the row activated by the double click event.)
I still don't know if I'm asking the right question.
Thanks
WJS