Delphi Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me

The Shed is going Social! Join us on FaceBook and Twitter and chime in on the conversation.

Go Back   Dev Shed ForumsProgramming Languages - MoreDelphi Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old March 16th, 2013, 03:51 AM
icuras icuras is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2007
Posts: 165 icuras User rank is Sergeant Major (2000 - 5000 Reputation Level)icuras User rank is Sergeant Major (2000 - 5000 Reputation Level)icuras User rank is Sergeant Major (2000 - 5000 Reputation Level)icuras User rank is Sergeant Major (2000 - 5000 Reputation Level)icuras User rank is Sergeant Major (2000 - 5000 Reputation Level)icuras User rank is Sergeant Major (2000 - 5000 Reputation Level) 
Time spent in forums: 1 Day 4 h 42 m 59 sec
Reputation Power: 36
Locate On Dbgrid

Hi

Is there anyway of selecting a FOUND record on a dbgrid

I have this code

Code:
dbggrid1.DataSource.DataSet.Locate('ClientNumber',eclientnumber.text,[]);


I find the client on the grid perfectly. But i want to select that record WITHOUT MANUALLY clicking on it. Ive tried setfocus.Selectedindex. I have no idea.

Please help

Thanks

Last edited by icuras : March 16th, 2013 at 04:52 AM.

Reply With Quote
  #2  
Old March 18th, 2013, 01:41 PM
majlumbo majlumbo is offline
Contributing User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2008
Posts: 251 majlumbo User rank is Lance Corporal (50 - 100 Reputation Level)majlumbo User rank is Lance Corporal (50 - 100 Reputation Level)majlumbo User rank is Lance Corporal (50 - 100 Reputation Level) 
Time spent in forums: 2 Days 22 h 50 m 14 sec
Reputation Power: 5
Locate will set the first matched record as the current record, so not sure what the issue may be other than, possibly, your search isn't actually matching any records.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreDelphi Programming > Locate On Dbgrid

Developer Shed Advertisers and Affiliates



Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump

Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 


Powered by: vBulletin Version 3.0.5
Copyright ©2000 - 2013, Jelsoft Enterprises Ltd.

© 2003-2013 by Developer Shed. All rights reserved. DS Cluster - Follow our Sitemap