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

How to turn off Column and Cell select in a Grid datawindow

320 views
Skip to first unread message

troyhuff

unread,
Jul 3, 2006, 3:26:13 PM7/3/06
to
How to turn off Column and Cell select in a Grid datawindow.
I haven't programmed in PB in a while and I know this is
very easy. I just can't seem to find the right object
attribute. Any way how do you turn off the cell and/or
column heading selection in a grid datawindow. Thanks

troyhuff

unread,
Jul 3, 2006, 3:39:25 PM7/3/06
to

I added dw_1.Object.DataWindow.Selected.Mouse = "No" and it
keeps the cells from being selected, but the user can still
select a column and it highligts it in black. thanks for
any help

KiranW

unread,
Jul 4, 2006, 3:59:48 AM7/4/06
to
Just try ...

In clicked event of your datawindow control

If row = 0 then
return 1
End If

You can capture and use dwo.name in if condition to retain default
functionality of grid column like resize , move etc...

Regards
Kiran

<Troy Huff> wrote in message news:44a9711e.169...@sybase.com...

KiranW

unread,
Jul 4, 2006, 4:00:30 AM7/4/06
to
Just try ...

In clicked event of your datawindow control

If row = 0 then
return 1
End If

You can capture and use dwo.name in if condition (dwo.name <>
'datawindow' ) to retain default


functionality of grid column like resize , move etc...

Regards
Kiran

<Troy Huff> wrote in message news:44a9711e.169...@sybase.com...

Larry Molter

unread,
Jul 5, 2006, 8:22:19 AM7/5/06
to
Troy, there are two properties that need to be turned off -- Column Move and
Mouse Selection. They are both listed on the property sheet of the
datawindow in the painter.

Larry Molter

<Troy Huff> wrote in message news:44a9711e.169...@sybase.com...

0 new messages