0

我有一个显示 3 列的 DataGridView,但我想在链接文本中转换其中一列的值。

我按如下方式填充我的 DataGridView:

DataGridViewSearchReport.DataSource = queryResDT

queryResDT 是来自 SQL 查询的 DataTable

4

1 回答 1

0
 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
于 2015-03-11T20:23:09.830 回答