asp.net中的Datagridviewcell

asp.net中的Datagridviewcell,asp.net,vb.net,web-applications,Asp.net,Vb.net,Web Applications,我想问一下,在windows窗体中,我们写的是DataGridViewCell,所以我们在web而不是DataGridViewCell中写的是什么 For Each row As GridViewRow In GridView1.Rows For Each celli As DataGridColumn In row.Cells Try pdfTable.AddCell(celli.Value.ToString())

我想问一下,在windows窗体中,我们写的是DataGridViewCell,所以我们在web而不是DataGridViewCell中写的是什么

For Each row As GridViewRow In GridView1.Rows
        For Each celli As DataGridColumn In row.Cells
            Try
                pdfTable.AddCell(celli.Value.ToString())
            Catch
            End Try
        Next
    Next

你应该试试
DataGridColumn
而不是
DataGridViewCell

这是怎么回事
C
?我的错。。。当我使用它时,我会显示此中的错误。。celli.Value“Value不是'System.Web.UI.WebControls.DatGridColumn'@user123'的成员。您能告诉我
行中的行是什么吗
row.Cells