【问题标题】:Finding Column value in GridView在 GridView 中查找列值
【发布时间】:2013-06-27 07:52:24
【问题描述】:

我想从DataRowView获取列(Description)。我有以下代码。

protected void GridView1_RowCreated(object sender, GridViewRowEventArgs e)
        {

            if (e.Row.DataItem != null)
            {
                DataRowView dataRowView = ???????????
                string description = dataRowView["Description"] as string;
            }

        }

如何用合适的代码替换??????????

【问题讨论】:

    标签: asp.net gridview datarowview


    【解决方案1】:

    使用(DataRowView)e.Row.DataItem;

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2010-12-04
      • 2018-09-26
      • 2015-01-20
      • 1970-01-01
      • 2011-05-20
      • 1970-01-01
      • 2012-01-24
      相关资源
      最近更新 更多