🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.csharpbuilder.winforms.controls.using
Article #27

using datagrid

#27
From: Phil
Date: Wed, 10 Aug 2005 21:48
12 lines
1713 bytes
I am new to d2005 so not sure how to go about achieving this. But I am 
trying to add/delete records in an ECO app with datagrid bound. what I would 
like to do is allow the user to automatically add a record if they have the 
last row of the grid selected and press the down arrow (or automatically add 
a new object if they start typing in the last row). However I cant seem to 
trap the onkeyup or onkeydown event of the grid even though I have 
implemented its events. Is there something that I am missing to do this?

alternatively I would like to provide the user with a context menu on the 
grid. However I cant seem to get the menu to pop up when they right click on 
a column in the grid (but only when they right click on the grid's blank 
space). How do I assign a context menu to the columns? 
Technical Details
Message-ID: <42fa7621@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Thread: 1eff3c,786e40cd3ef323dd,start
X-Google-Attributes: gid1eff3c,public
X-Google-Language: ENGLISH,ASCII-7-bit
From: "Phil" <phillip.allenATiwl.com.au>
Newsgroups: borland.public.csharpbuilder.winforms.controls.using
Subject: using datagrid
Date: Thu, 11 Aug 2005 07:48:17 +1000
Lines: 14
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2900.2180
X-RFC2646: Format=Flowed; Original
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2900.2180
NNTP-Posting-Host: 61.88.108.19
Message-ID: <42fa7621@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1123710497 61.88.108.19 (10 Aug 2005 14:48:17 -0700)
Path: arc1-ca.pugleaf.net!g2news1.google.com!news2.google.com!proxad.net!212.101.4.254.MISMATCH!solnet.ch!solnet.ch!news-out.newsgroups.com!propagator2-sterling.newsfeeds.com!in.nntp.be!caladan.landsraad.net!newsgroups.borland.com!not-for-mail