Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

focusing on a certain row in mshflexgrid.

Posted on 2000-02-20
4
Medium Priority
?
205 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 150 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

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Question has a verified solution.

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

Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
If you have ever used Microsoft Word then you know that it has a good spell checker and it may have occurred to you that the ability to check spelling might be a nice piece of functionality to add to certain applications of yours. Well the code that…
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
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…
Suggested Courses

885 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