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

Q about grid with highlightrow

Status
Not open for further replies.

Nifrabar

Programmer
Mar 16, 2003
1,343
NL
Hi!
I have a grid with last column having a commandbutton.
Conditionally that button is visble.
It's a proper look for the user to have set allowcellselection to .F. But than I never can use that cmd in the lastcolumn. Is there a workaround to have benefits of both ?
-Bart
 
Hi Bart.

It's a proper look for the user to have set allowcellselection to .F. But than I never can use that cmd in the lastcolumn. Is there a workaround to have benefits of both ?

Just an untested idea off the top of my head:

You may want to check out the GridHitTest method. Perhaps you can use it to determine when the user has clicked in the column with the command button, and when he does, temporarily set the grid's AllowCellSelection property to .T., click the command button, and the reset AllowCellSelection to .F.

Don't know if it will work...

Marcia G. Akins
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top