Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

DBGRID: stop user clicking/tabbing into Locked column?

2 views
Skip to first unread message

Alastair Cameron

unread,
Jul 28, 1998, 3:00:00 AM7/28/98
to
Hi.

I'm using a DB grid (in unbound mode) with 3 columns. The user can enter
data into column two and three (but not column one).

In the first column, I'm displaying values as a prompt to the user. I have
LOCKED the column to stop entry, but would really like to stop the user
clicking/tabbing/returning into the first column.

Can anybody suggest ways of doing this with DBGRID (unbound, if that makes
any difference!).

Thanks.

--
Alastair Cameron
alastair...@cableinet.co.uk


Mike Threlkeld

unread,
Jul 29, 1998, 3:00:00 AM7/29/98
to
If grdDetail.Columns(grdDetail.COL).Locked = True Then
grdDetail.COL = 1 'Some column that's not locked, or some other
control, or whatever
End If

--
Mike Threlkeld
Technetics Software Development, Inc.
Fayetteville, AR
Please note "anti-spam" e-mail address.

Alastair Cameron <alastair...@cableinet.co.uk> wrote in article
<6pl2qc$fr$1...@spurs.cableinet.net>...

Peter Surcouf

unread,
Jul 31, 1998, 3:00:00 AM7/31/98
to
If you have the upgraded Apex TDBGrid then

TDBGrid1.Columns(0).AllowFocus = False

Unfortunately this does not work with the cut down version that comes with
VB

Peter

pe...@surcouf.co.uk
using
Office97sp1,VB5.0sp3,SQL6.5sp3,Win95,NT4.0ws,NT4.0sp3Server

0 new messages