Link to home
Start Free TrialLog in
Avatar of Murray Brown
Murray BrownFlag for United Kingdom of Great Britain and Northern Ireland

asked on

VSTO - DataGRidView change line colour on click

Hi

In a DataGridView is it possible using VB.net code to change the row color,
Avatar of nepaluz
nepaluz
Flag of United Kingdom of Great Britain and Northern Ireland image

handle the click event and set the row color by

Dim MyGrid =DirectCast(Sender, DataGridView)
MyGrid.Rows(e.RowIndex).BackColor=Color.Blue

Open in new window

ASKER CERTIFIED SOLUTION
Avatar of mayank_joshi
mayank_joshi
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
here myDGV is the ID of the DataGridView
Avatar of Murray Brown

ASKER

thanks very much