Sign in to follow this  
Followers 0
fxg4758

Get string from datagrid

3 posts in this topic

Hello people. I have a datagrid in a program (VB) that have tree columns and various rows. I need to find a string in the first column and if isn´t find then go to the next row. I already try the ControlGetText or WinGetText, but i don´t have any luck. Thanks for any help. :whistle:

Share this post


Link to post
Share on other sites



use if state ment...

If WinActive ("window title", "window text" ) Then

exit

Else

go to....

Share this post


Link to post
Share on other sites

Hello pjotterke. Thanks for your reply. The control is "DataGridWndClass" and when I use your solution, i cannot select the right line. For example, i have various lines starting "Sport", but i don´t know how to select only "Sport Car". Can you give me some of code for the right selection and to move in the next row. Sorry for the question, but I only start at a month ago in this program. :">

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0