🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.lang.basic.visual.database
Article #93

Re: How can I prevent column selection on header click and row selection ?

#93
From: Randy Day
Date: Fri, 12 Mar 2004 07:44
32 lines
2055 bytes
"David M�ndez" wrote:
> 
> Hi!!
> 
> I have 2 questions:
> 
> 1. When I click DATAGRID header all the column is selected, I need to
> prevent this.

Is the header considered row 0? 
If so, this might work; put the 
following in the grid entercell()
event

if grid.row=0 then grid.row=1

This should prevent the header 
from being selected.

> 
> 2. I want ROW selection programatically, how can I make it?

grid.row=1

> 
> thanks.
> 
> --
> Eng. David M�ndez
> Bogota, Colombia, South America
> email: davigre@hotmail.com
> alt.: davigre@hotpop.com
Technical Details
Message-ID: <40516A68.F3F81845@sasktel.nex>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
References: <c2rave$208uqd$2@ID-194902.news.uni-berlin.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1053fc,25c5371ee4a00334
X-Google-Attributes: gid1053fc,public
X-Google-Thread: 110e3b,25c5371ee4a00334
X-Google-Attributes: gid110e3b,public
X-Google-Thread: 11493c,25c5371ee4a00334
X-Google-Attributes: gid11493c,public
X-Google-Thread: 10c622,25c5371ee4a00334
X-Google-Attributes: gid10c622,public
X-Google-Thread: 10be7f,25c5371ee4a00334
X-Google-Attributes: gid10be7f,public
X-Google-Thread: 1143a7,25c5371ee4a00334
X-Google-Attributes: gid1143a7,public
X-Google-ArrivalTime: 2004-03-11 23:46:25 PST
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!sn-xit-03!sn-xit-04!sn-xit-01!sn-post-01!supernews.com!corp.supernews.com!not-for-mail
From: Randy Day <ruthal@sasktel.nex>
Newsgroups: comp.lang.basic.visual.database,comp.lang.basic.visual.misc,es.comp.lenguajes.visual-basic,microsoft.public.vb.database,microsoft.public.vb.database.ado,microsoft.public.vb.general.discussion
Subject: Re: How can I prevent column selection on header click and row selection 
 ?
Date: Fri, 12 Mar 2004 01:44:40 -0600
Organization: Posted via Supernews, http://www.supernews.com
Message-ID: <40516A68.F3F81845@sasktel.nex>
X-Mailer: Mozilla 4.79 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
References: <c2rave$208uqd$2@ID-194902.news.uni-berlin.de>
Content-Type: text/plain; charset=iso-8859-1
Content-Transfer-Encoding: 8bit
X-Complaints-To: abuse@supernews.com
Lines: 32