C# DataGridView on WinForm - Is there a way to show underline when Mouse Over?

  • Thread starter Thread starter iHandler
  • Start date Start date
I

iHandler

Guest
I have a datagridview on a WinForm, one of the columns called "Link" and I want to have a underline showing up whenever the cursor on the cell, and when it leaves out and the cell will restore to "regular". (just like a hyperlink in HTML)

datagridview.Columns["link"].DefaultCellStyle.Font = new Font(grid.Font, FontStyle.Underline);

Is there a way to do that?

Continue reading...
 
Back
Top