Link to home
Start Free TrialLog in
Avatar of al4629740
al4629740Flag for United States of America

asked on

Unhighlight all the text in a cell

When I click on a cell in my datagrid, it automatically highlights all the text in the cell.  To stop this I would like to add code to the Click event to unhighlight the text when the cell is selected.  Is there a way to do this?

I am using VB6
Avatar of Martin Liss
Martin Liss
Flag of United States of America image

You can use the SelStart property set it to 1 at the start of the Click event.
In other words MyGrid.SelStart = 1
Avatar of al4629740

ASKER

I put it on the click event and that didn't do it.
Can you attach a zip of your project including the database?
ASKER CERTIFIED SOLUTION
Avatar of eemit
eemit
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
That was it.  The only problem is you don't see the cursor until you double click on the cell.