Convert a DataGridViewColumn in DatagridViewLinkColumn

1k Views Asked by At

I have a DataGridView that shows 3 columns, but I want to convert the values of one of these columns in link texts.

I populate my DataGridView as follow:

DataGridViewSearchReport.DataSource = queryResDT

queryResDT is a DataTable from a SQL query

1

There are 1 best solutions below

0
On
 Private Sub DataGridViewSearchReport_DataBindingComplete(sender As Object, e As DataGridViewBindingCompleteEventArgs) Handles DataGridViewSearchReport.DataBindingComplete
    For Each row As DataGridViewRow In DataGridViewSearchReport.Rows
        If Not IsNothing(row.Cells("Report Name")) Then
            row.Cells("Report Name") = New DataGridViewLinkCell
        End If
    Next
End Sub