Link to home
Start Free TrialLog in
Avatar of RIAS
RIASFlag for United Kingdom of Great Britain and Northern Ireland

asked on

First row of datagridview remains selected +vb.net

Hi,
First row of grid is selected as son as the tab index is changed.I have used the code on form load
dg.clearselection and also dg.rows(0).selected=false.But as soon as the I change tabs and the grid on tab2 still has the first row selected.But it works for first grid on tabpage0

Cheers
Avatar of Dennis Aries
Dennis Aries
Flag of Netherlands image

Use RegEx to replace all characters that do not match alphanumeric characters with an empty string.
I think it should be something like attached code.

stringToCleanUp = Regex.Replace(stringToCleanUp, "[^a-zA-Z0-9]", "")

Open in new window

Oops, sorry. Posted to wrong question. Ignore :)
 
Avatar of RIAS

ASKER

Any suggestions?
ASKER CERTIFIED SOLUTION
Avatar of niralshah
niralshah
Flag of India 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