At 05:54 PM 12/13/2015, Michael J. Sinclair wrote:

I have a form with DB grid. I have an ON DB GRID CELL CLICK EEP where
the user is supposed to click the last column. If they click on the
wrong column, is there something like a SET FOCUS or SKIP TO command
that works within a DB Grid?


Here's how ...

Using R:BASE eXtreme 9.5 or R:BASE X (Version 10):

When using the DB Grid or Enhanced DB Grid, to force user to click
the desired column, use the "SELECTEDINDEX" property to accomplish
your goal.

-- Example

   PROPERTY EnDBGrid_InvoiceDetails SELECTEDINDEX '14'
   RETURN

   Where:

   EnDBGrid_InvoiceDetails is the Component ID for Enhanced DBGrid

   #14 is the 15th column on Enhanced DB Grid associated with the
   InvoiceDetails table for selected row.

   SELECTEDINDEX "0" would be the first column on Enhanced DB Grid
   associated with the InvoiceDetails table for selected row.

That's all there is to it!

Very Best R:egards,

Razzak.


Reply via email to