【问题标题】:Datagridviewcell in asp.netasp.net中的Datagridviewcell
【发布时间】:2017-09-15 10:07:41
【问题描述】:

我想问在 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

【问题讨论】:

  • 这个C#怎么样?
  • 我很糟糕...我编辑

标签: asp.net vb.net web-applications


【解决方案1】:

您应该尝试DataGridColumn 而不是DataGridViewCell

【讨论】:

  • 当我使用这个时显示一个错误.. celli.Value "value is not a member of 'System.Web.UI.WebControls.DatGridColumn"
  • @user123 你能告诉我row.Cells中的行是什么
猜你喜欢
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
相关资源
最近更新 更多