Solved

focusing on a certain row in mshflexgrid.

Posted on 2000-02-20
4
179 Views
Last Modified: 2010-05-02
Dear experts.

I would like to find a way to set the focus on a specific row of a mshflexgrid right after it fills up from a recordset.

thanks...
0
Comment
Question by:asaflahv1
  • 3
4 Comments
 
LVL 6

Accepted Solution

by:
Marine earned 50 total points
ID: 2539805
OK its simple to do that. Say you have 5 columns in your FlexGrid
so it would be like this
This code would do the follwong. It would select 2nd row with 5 columns. Remember that column collection is 0 based. Good luck
msGrid1.Row = 2
msGrid1.ColSel = 4
0
 
LVL 6

Expert Comment

by:Marine
ID: 2539807
msGrid1 is just a name of my FleXGrid.

Cheers , everyone is saying that :-)
0
 
LVL 1

Author Comment

by:asaflahv1
ID: 2540747
thank you...
I didn't notice that property :-)

bye.
0
 
LVL 6

Expert Comment

by:Marine
ID: 2540762
Your Welcome. Best of Luck.
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Article by: Martin
Here are a few simple, working, games that you can use as-is or as the basis for your own games. Tic-Tac-Toe This is one of the simplest of all games.   The game allows for a choice of who goes first and keeps track of the number of wins for…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

760 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

Need Help in Real-Time?

Connect with top rated Experts

17 Experts available now in Live!

Get 1:1 Help Now