Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

Dw control clicked event

3 posts in DataWindow .NET Last posting was on 2004-09-17 20:43:08.0Z
Blair Posted on 2004-09-16 18:26:53.0Z
Sender: 73b2.4149dc06.1804289383@sybase.com
From: Blair
Newsgroups: sybase.public.datawindow.net
Subject: Dw control clicked event
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <4149dcaa.73cf.1681692777@sybase.com>
X-Original-NNTP-Posting-Host: 10.22.241.42
X-Original-Trace: 16 Sep 2004 11:34:18 -0700, 10.22.241.42
Lines: 2
X-Original-NNTP-Posting-Host: forums-2-dub.sybase.com
X-Original-Trace: 16 Sep 2004 11:14:38 -0700, forums-2-dub.sybase.com
NNTP-Posting-Host: forums-master.sybase.com
X-Original-NNTP-Posting-Host: forums-master.sybase.com
Date: 16 Sep 2004 11:26:53 -0700
X-Trace: forums-1-dub 1095359213 10.22.108.75 (16 Sep 2004 11:26:53 -0700)
X-Original-Trace: 16 Sep 2004 11:26:53 -0700, forums-master.sybase.com
X-Authenticated-User: ngsysop
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:387
Article PK: 124816

I'm looking for info re: dw control clicked event, trying to
write code to handle a Column Header Sort routine.


dfish Posted on 2004-09-16 18:54:23.0Z
From: dfish@_no_spam_sybase.com (Dave Fish [Team Sybase])
Newsgroups: sybase.public.datawindow.net
Subject: Re: Dw control clicked event
Organization: Sybase Professional Services
Reply-To: nospam_dfish@sybase.com_nospam
Message-ID: <4149d94c.64525993@forums.sybase.com>
References: <4149dcaa.73cf.1681692777@sybase.com>
X-Newsreader: Forte Free Agent 1.21/32.243
NNTP-Posting-Host: vpn-dub-022.sybase.com
X-Original-NNTP-Posting-Host: vpn-dub-022.sybase.com
Date: 16 Sep 2004 11:54:23 -0700
X-Trace: forums-1-dub 1095360863 10.22.120.22 (16 Sep 2004 11:54:23 -0700)
X-Original-Trace: 16 Sep 2004 11:54:23 -0700, vpn-dub-022.sybase.com
Lines: 20
X-Authenticated-User: TeamSybase
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:388
Article PK: 124818

What information are you looking for?

If you want to find out what column or header the user clicked on take
a look at the objectUnderMouse property on the DataWindow control.

Regards,
Dave Fish
Sybase

TeamSybase blogs: http://www.teamsybase.net/blogs

DataWindow.NET code examples available on CodeXchange:
http://datawindownet.codexchange.sybase.com

On 16 Sep 2004 11:26:53 -0700, Blair wrote:

>I'm looking for info re: dw control clicked event, trying to
>write code to handle a Column Header Sort routine.


Blair Posted on 2004-09-17 20:43:08.0Z
Sender: 4058.414b49c6.1804289383@sybase.com
From: Blair
Newsgroups: sybase.public.datawindow.net
Subject: Re: Dw control clicked event
X-Mailer: WebNews to Mail Gateway v1.1t
Message-ID: <414b4c5c.4093.1681692777@sybase.com>
References: <4149d94c.64525993@forums.sybase.com>
NNTP-Posting-Host: 10.22.241.41
X-Original-NNTP-Posting-Host: 10.22.241.41
Date: 17 Sep 2004 13:43:08 -0700
X-Trace: forums-1-dub 1095453788 10.22.241.41 (17 Sep 2004 13:43:08 -0700)
X-Original-Trace: 17 Sep 2004 13:43:08 -0700, 10.22.241.41
Lines: 42
Path: forums-1-dub!not-for-mail
Xref: forums-1-dub sybase.public.datawindow.net:397
Article PK: 124827

This is what I was looking for:

Dim dwo As Sybase.DataWindow.GraphicObjectText
Dim sColName As String

Try
dwo = dwEmployee_Info.ObjectUnderMouse.Gob()
If (dwEmployee_Info.ObjectUnderMouse.Band.Type.ToString
<> "Header") Then Exit Sub
sColName = dwo.Name.ToString
If (sColName.Substring(sColName.Length - 2, 2) <> "_t")
Then Exit Sub

sColName = sColName.Substring(0, sColName.Length - 2)

dwEmployee_Info.SetSort(sColName)
dwEmployee_Info.Sort()
Catch ex As Exception
Exit Sub
End Try

> What information are you looking for?
>
> If you want to find out what column or header the user
> clicked on take a look at the objectUnderMouse property on
> the DataWindow control.
>
> Regards,
> Dave Fish
> Sybase
>
> TeamSybase blogs: http://www.teamsybase.net/blogs
>
> DataWindow.NET code examples available on CodeXchange:
> http://datawindownet.codexchange.sybase.com
>
>
> On 16 Sep 2004 11:26:53 -0700, Blair wrote:
>
> >I'm looking for info re: dw control clicked event, trying
> to >write code to handle a Column Header Sort routine.
>