Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17


DBGrid Column (SetFocus)

Posted on 1999-07-12
Medium Priority
Last Modified: 2008-02-01
Suppose you have 5 columns.  After updating column 1 and pressing the tab key to go to the column 2 you get a error on column 1.  How do you setfocus on column you got the error on.

Thanks Angela
Question by:Angela030399
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 2
  • 2

Expert Comment

ID: 1387778
I think this would depend somewhat on what sort of errors we are talking about and how those errors are raised.  Can you be a little more specific?

Author Comment

ID: 1387779
I just want to to know how set focus on a specific column.

Accepted Solution

AndyJohn earned 40 total points
ID: 1387780
procedure TForm1.Button1Click(Sender: TObject);
  DBGrid1.SelectedIndex := 0;


Author Comment

ID: 1387781
Thanks, AndyJohn

Featured Post

On Demand Webinar: Networking for the Cloud Era

Did you know SD-WANs can improve network connectivity? Check out this webinar to learn how an SD-WAN simplified, one-click tool can help you migrate and manage data in the cloud.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A lot of questions regard threads in Delphi.   One of the more specific questions is how to show progress of the thread.   Updating a progressbar from inside a thread is a mistake. A solution to this would be to send a synchronized message to the…
Introduction I have seen many questions in this Delphi topic area where queries in threads are needed or suggested. I know bumped into a similar need. This article will address some of the concepts when dealing with a multithreaded delphi database…
In this video you will find out how to export Office 365 mailboxes using the built in eDiscovery tool. Bear in mind that although this method might be useful in some cases, using PST files as Office 365 backup is troublesome in a long run (more on t…
In this video, Percona Solution Engineer Dimitri Vanoverbeke discusses why you want to use at least three nodes in a database cluster. To discuss how Percona Consulting can help with your design and architecture needs for your database and infras…
Suggested Courses

705 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question