我有一个显示3列的DataGridView,但是我想在链接文本中转换其中一列的值。
我填充我的DataGridView如下:
DataGridViewSearchReport.DataSource = queryResDTqueryResDT是来自SQL查询的DataTable。
发布于 2015-03-12 04:23:10
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 Subhttps://stackoverflow.com/questions/28995523
复制相似问题